2 ms·
> if you started with ML syntax, you'd feel the same way learning a language with C syntax. I always wonder this but I’ve always found Lisp syntax to be a lot
by vlovich123 4y ago
> if you started with ML syntax, you'd feel the same way learning a language with C syntax.
I always wonder this but I’ve always found Lisp syntax to be a lot more intimidating and less readable for whatever reason. I should give it a fair shot one of these days.
- trenchgun 4y agoLisp syntax is unreadable because there is not much syntax. Functions, macros, variables are all in a mix of gazillion parentheses. ML syntax is really clean.
- kazinator 4y agoLisp syntax is about the vocab. Because the grouping (what expression is child of what other expression, and at which position: third child, fifth child, ... is clear). If you don't know what the word means, like what is foobly in (foobly ((x 3)) (blorch x)), and don't yet have the intuition to make an accurate guess, you are screwed if you don't look it up. The meaning of everything inside (foobly ...) could depend on the definition of foobly. foobly could be in the language itself, or some extension in the language implementation, or it could be defined in the code base. Newcomers to some kind of Lisp get confronted with identifiers that they haven't seen anywhere.