4 ms·
I have been noticing this effect as well, and I was thinking that there needs to be a change in how we design programming languages. The old programming languag
by hzhou321 8y ago
I have been noticing this effect as well, and I was thinking that there needs to be a change in how we design programming languages. The old programming languages are treating characters or words as atomic units, but human mind does not really work at words. We work at sentences or lines. Each line can have its own context and can host more flexible syntax. On one hand, the programming languages can be more expressive when designed toward line units -- lines naturally can host more vocabulary than isolated words; on the other hand, the compilers and parsers can actually be simpler or smarter, as lines pose boundary of syntax and errors may be confined and easy to recover.
- earenndil 8y agoLisp?
- ludston 8y agoYes and no. In my experience vim is great for manipulating s-expressions because it has expressions like da( which means "delete everything between the parens wrapping the cursor". But no, many lisp dialects have a tendency towards nesting expressions which will force them accross many lines which doesn't match up with ^^'s idea of keeping lines context free.
- earenndil 8y agoSure, but then you just say that the atomic unit is not the line, but rather a list.
- JdeBP 8y agoBASIC, surely? (-: