2 ms·
> This view is false because what is hard to parse for machines also presents difficulty for humans. Yes definitely to some extent, but they aren't perfectly a
by IshKebab 9mo ago
> This view is false because what is hard to parse for machines also presents difficulty for humans.
Yes definitely to some extent, but they aren't perfectly aligned. Most languages make things a bit harder to parse for machines but easier for humans. Some get it wrong (e.g. I would say OCaml is hard to parse for humans, and some of C's syntax too like the mental type declaration syntax). I don't think you could say that e.g. Dart is harder to parse for humans than Lisp, even though it's clearly harder for machines.
- kazinator 9mo agoIf they were perfectly aligned, you could easily parse 128 levels of parentheses without any line breaks or indentation. Every rule for inferring a hiddnen, implicit structure within a sequence of tokens makes things harder, even on the scale of just a few tokens in one line within an indented structure.