2 ms·
Formatting and indenting are slightly different things. Formatting in Lisp is either called pretty printing or grinding. Formatting includes the layout of code
by lispm 12y ago
Formatting and indenting are slightly different things.
Formatting in Lisp is either called pretty printing or grinding. Formatting includes the layout of code including where the line breaks are in code.
CL-USER 50 > (PPRINT '(DEFUN FOO (A B C) (* (+ A B C) (+ (EXPT A 2) (EXPT B 2) (EXPT C 2 )) (+ (EXPT A 3) (EXPT B 3) (EXPT C 3)))))
(DEFUN FOO (A B C)
(* (+ A B C)
(+ (EXPT A 2) (EXPT B 2) (EXPT C 2))
(+ (EXPT A 3) (EXPT B 3) (EXPT C 3))))