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

Pages: 1-

One Word

Name: Anonymous 2012-12-30 22:16

THE FORCED INDENTATION OF CODE

Name: Lambda Arthur Knuthulus 2012-12-30 22:24

(define area-of-disk
 (λ (r) (× (² r) π)))

Name: Anonymous 2012-12-31 0:05

aod = @(r) r.^2 .* pi;

Name: Anonymous 2012-12-31 4:34

aod=(* pi).(^ 2)

Name: Anonymous 2012-12-31 4:41

U MENA HASKAL

Name: Anonymous 2012-12-31 11:06

rof ur dog is ded

Name: Anonymous 2012-12-31 18:33

TheForcedIndentationOfCode

Name: Anonymous 2013-01-01 0:07

>>2
I have to ask, why did you use a lambda, instead of:

(define (area-of-disk r)
 (* (* r r) pi) π))

Name: Anonymous 2013-01-01 0:08

>>8
Whoops, I mean:

(define (area-of-disk r)
 (* (* r r) π))

Name: Anonymous 2013-01-01 0:55

>>9
Never mind, I didn't realize that (define (fun args) ...) was shorthand for the form used in your post.

Name: Anonymous 2013-01-01 3:25

>>10
That's still a valid question on style. Personally, I prefer the shorthand form; it's much less noisy, especially when it's a function which evaluates to a function.

Name: Anonymous 2013-01-01 3:39

>>10
'cause the 'λ' character is funny.

Name: Anonymous 2013-01-01 4:21

>>1
THREAD OVER!!

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