 | Why S-expressions are hard to read: concrete, objective reasons |
| 4 points by nburns 4551 days ago | 51 comments |
|
| I've had great experiences writing Scheme. But the readability problems are real, and it seems like every time I take a break, I have to retrain my eye to start writing Scheme again. I think the problem is fundamental. S-expressions are hard for the eye to parse. Things other programming languages do, like using a variety of grouping symbols, punctuation, syntax highlighting, etc -- these communicate meaning through multiple channels at once, using more of the eye's natural bandwidth. You can take in the meaning a lot faster. Surprisingly, the principles of readability have been pretty much fully explained. Here is an example of a book on graphic design, which gives the flavor for non-experts (like me): http://www.peachpit.com/store/non-designers-design-book-9780321534040 I only read the first few chapters, actually, but I learned that readability is not actually all that personal and subjective. The proposals for improving on S-expressions that I've seen look like they're on the right track. I just wanted to contribute that the problems being solved are not unique, and aren't just about people being unfamiliar with Lisp. |