4 ms·
"Unreadable" is a choice at this point. Here's a simple trick to make Lisp instantly readable. Take a line of code from an algol-like language: foo(bar(), b
by TeMPOraL 7y ago
"Unreadable" is a choice at this point.
Here's a simple trick to make Lisp instantly readable. Take a line of code from an algol-like language:
foo(bar(), baz(quux))
then, shift every opening parenthesis one token to the left:
(foo (bar), (baz quux))
and drop the commas:
(foo (bar) (baz quux))
Now you have an equivalent piece of Lisp code.
- klyrs 7y agoHard agree. I don't use lisp, but people in an adjacent department do (yes, in prod). It takes a few minutes to learn to read lisp. Arithmetic takes a lil bit to grok, but short expressions are easy. I wouldn't share lisp that I've written with my coworkers ;)
- dwheeler 7y agoIf you prefer to use Lisp with a more conventional syntax, check out "readable Lisp: https://readable.sourceforge.io/ https://readable.sourceforge.io/ It has three levels of notation, depending on what you want. There is even a quick lisp library.
- TeMPOraL 7y agoPersonally, I like Lisp the way it is. I fully agree with this image: https://www.reddit.com/r/lisp/comments/e2e5o/lispovision/ https://www.reddit.com/r/lisp/comments/e2e5o/lispovision/