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

Pages: 1-

On indent style

Name: Anonymous 2009-11-03 3:57

/prog/riders - do you

a. keep one clause of a special form on the same line, i.e.

(define (foo a b)
  (cond ((> (+ a b) 0) (+ a b))
        (else 0)))

 
or
b. split special forms?
(define (foo a b)
  (cond
    ((> (+ a b) 0)
     (+ a b))
     (else 0)))

Name: Anonymous 2009-11-03 4:31

I do not use your language because I have no need for calculating fibs.

Name: Anonymous 2009-11-03 9:41

Both, depending on how I want it to look. Either way of indenting it is correct.

Name: Anonymous 2009-11-05 10:29

10 IF A+B>0 THEN PRINT A+B ELSE PRINT 0

ALL IN A SINGLE LINE

Name: Anonymous 2010-12-17 1:34

Erika once told me that Xarn is a bad boyfriend

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