logoalt Hacker News

dukoid • today at 3:50 PM • 2 replies • view on HN

Lisp people: Look at the elegance and simplicity of S-expressions! Isn't it a beauty?

Also Lisp people: Here is a thesis-sized article about formatting them properly O:)


Replies

_ph_ • today at 4:24 PM

Actually, due to the Lisp syntax, code formatting is usually a non-issue. It is mostly reduced to correct indenting, where a common style had been established very early on in the language history - which means really long ago. All editors, which are Lisp-aware usually do it very well.

The problem remaining is, that there are editors around, which are not Lisp aware and to my continuing confusion, lots of users, which use them. So there is from time to time the requirement to predictably reformat source files. Of course, also helps a lot with automatic generated code. Just feed it to the formatter. I wrote a tool comparable to gofmt some time ago and it is very helpful.

➕ show 1 reply
guenthert • today at 4:07 PM

From TFA: In the Lisp world the answer is usually “my editor does it”

And that's where the story ends for most of us. Author's set-up seems to have had CI tools fighting the editor. Most of us would have disabled the misguided CI auto-formatter ...