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

Pages: 1-

SICP Streams

Name: Anonymous 2014-03-28 2:36

I don't find ``defining streams implicitly'' very readable. Is it because I'm not used to work with streams?

(define fibs
(cons-stream 0
(cons-stream 1
(add-streams (stream-cdr fibs)
fibs))))

Name: Anonymous 2014-03-28 4:07

or because you suck at indenting

Name: Anonymous 2014-03-28 6:58

Just use HASKALL for that.

Name: Anonymous 2014-03-28 8:13

>>3
I was going to reply to you with a humorous misunderstanding the concept of stream, recommending C++'s IOStream or Java's BufferedStream instead, but it turns out that Java 8 actually introduced a real Stream API. So fuck that.

Name: Anonymous 2014-03-30 2:10

>>2
that's the indenting used in SICP :-)

Name: Anonymous 2014-03-30 18:06

I don't see any indenting.

Name: Anonymous 2014-03-31 11:10

>>5
They used that style just to see if anyone is retard enough to copy it. Seems like someone was/is.

Name: Anonymous 2014-03-31 21:59

>>7

Not the same guy, but I'm not sure what's wrong with it.

Name: >>2 2014-03-31 22:31

>>8
The 0 and 1 could be on their own lines. To be honest, the way it's currently indented is not really that bad, it just could be better.

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