Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

SICP

Name: Anonymous 2010-08-05 13:54

How is 


(+ (* 3
    (+ (* 2 4)
      (+ 3 5)))
  (+ (- 10 7)
    6))


less confusing than


(+ (* 3 (+ (* 2 4) (+ 3 5))) (+ (- 10 7) 6))
?!?!?!

And what is with this sorcerer bullshit?

And why the heck is Sussman wearing a fez?

Is he by any case a Shriner?

Also how does Scheme compare to Python and Java in terms of efficiency?

Name: Anonymous 2010-08-05 13:59

And why the heck is Sussman wearing a fez?

Is he by any case a Shriner?


It's always been a suspicion of mine!

Name: Anonymous 2010-08-05 14:11

>>1
You don't understand indention?

>>2
Sussman is at the top of all hierarchies. Being a Shriner implies that he asked to belong, which he need not do.

Name: Anonymous 2010-08-05 14:23

>>3
evidently not, as he indented incorrectly
>>1
Efficiency varies from implementation to implementation. Faster than python is a safe bet.

Name: Anonymous 2010-08-05 14:23

>>3

You don't understand indention?

I find it harder to read than without indentation at all.

Name: Anonymous 2010-08-05 14:55

>>5
Then don't indent. Geeze, this isn't FIOC we're talking about.

Name: Anonymous 2010-08-05 15:29

Lisper for a year and a half here.
I can't read Lisp without identation, luckily Emacs can indent code for me so I don't have to put any effort in indenting my own code or reindenting crappily indented code by newbies. Editing it without Paredit would also be a pain.

If you won't learn the tools, you might as well give up on Lisp, otherwise your enjoyment of it will be severely diminished.

Name: Anonymous 2010-08-05 15:33

While we're complaining about coding style
(+ (* 3 (+ (* 2 4) 3 5)) (- 10 7) 6)
+ is just one of the many functions that are multiple arity, please use this facility.

Name: Anonymous 2010-08-05 16:38

>>1
This is really a kind of contrived example. Even in my complicated code which is math-heavy I don't have statements that look like this. If you need to evaluate a polynomial, you come up with an abstraction for polynomials (either a list of coefficients, or a cons of coefficients with the power of the variable term, or something else appropriate to the problem). If you need to evaluate a matrix, you come up with a matrix abstraction. Etc.

Usually the only time I deal with alignments like that is if I'm throwing a one-off lambda into a filter or map and I newline+indent to keep the width reasonable.

Name: Anonymous 2010-08-05 16:42

>>8
(+ (* 3 (+ (* 2 4) 3 5)) 10 -7 6)

Name: Anonymous 2010-08-05 19:08

>>10
premature optimization detected. trivial shit like that is the compiler's job.

Name: Anonymous 2010-08-05 19:40

>>11
derp detected

Name: Anonymous 2010-08-05 19:57

>>12
back to /b/, please.

Name: Anonymous 2010-08-05 20:33

>>13
Fuck of--nevermind, you're right.

Name: Anonymous 2010-08-06 2:45

3 5 + 2 4 * + 3 * 6 10 7 - + +

Name: Anonymous 2010-08-06 6:21

>>14
They're right all the time, now fuck off with your bullshite.

Name: Anonymous 2010-08-06 9:29

Also how does Scheme compare to Python and Java in terms of efficiency?
It's AWESOME.

Name: Anonymous 2010-08-06 12:38

>>17
IT IS MY ANUS

Don't change these.
Name: Email:
Entire Thread Thread List