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

Stylish )))

Name: Anonymous 2012-04-01 23:04

Hello /prog/,
How do you manage your closing parenthesis?

Do you let them hang:                                   
(define (fun1 b)
  (let ((a (fun2 1 2 3)))
    (case
      ((python) (display "FIOC"))
      ((bear) (display "LISP"))
      )
    )
  )


or you tuck them in:                                    
(define (fun1 b)
  (let ((a (fun2 1 2 3)))
    (case
      ((python) (display "FIOC"))
      ((bear) (display "LISP")))))


or, let out a bit at the end of the defun:              

(define (fun1 b)
  (let ((a (fun2 1 2 3)))
    (case
      ((python) (display "FIOC"))
      ((bear) (display "LISP"))))
  )

Name: Anonymous 2012-04-02 15:18

You should always tuck them in; a reader should be able to infer the logic flux by looking at the indentation alone, wich a decent editor should produce automatically. That said, I'm not an espert so I might be wrong.

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