3 ms·
I'm not sure I see the total difference between matching parens and matching defs and refs. Sure, saying "an open paren must have a matching close" is quantita
by 082349872349872 2y ago
I'm not sure I see the total difference between matching parens and matching defs and refs.
Sure, saying "an open paren must have a matching close" is quantitatively different from "a def must have at least one matching ref", but is it really qualitatively different?
- xigoi 2y agoA language that allows you to arbitrarily omit parentheses would be impossible to parse. That’s not the case for unused variables.
- 082349872349872 2y agoNot impossible: some lisps allowed arbitrary omission of close parens (upon finding a closing square bracket). https://news.ycombinator.com/item?id=29093339 https://news.ycombinator.com/item?id=29093339 http://arclanguage.org/item?id=20979 http://arclanguage.org/item?id=20979
- em-bee 2y agoHTML allows to omit closing tags for <p>, <li> and others