3 ms·
Readability is more about consistency than some style war. If you read more code that looks like X, then code that looks like Y will look "weird" and "unreadabl
by aufreak3 16y ago
Readability is more about consistency than some style war. If you read more code that looks like X, then code that looks like Y will look "weird" and "unreadable". The exact opposite holds for those who read more Y.
Try reading a Japanese manga translated into English. You start from the back of the book and read the right page first. Or try learning a language with "verb at end" kind of structure if English is your native tongue.
With lisp, the parentheses help create uniform parseable structure for both code and data, so I appreciate the compromise of a repeatable indentation scheme for code (using an editor) that lets you totally ignore the parens when reading.
With lisp, I do find syntax formatting such as bold keywords very effective even in the absence of color. So yeah, it is easy to create readable lisp in print as well. In fact, with bold keywords and gray parens, lisp code looks gorgeous and eminently readable.
http://xkcd.com/297/ http://xkcd.com/297/