Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Parentheses Are Just Typechecking. Parent comment
List needs parentheses because its parser does not depend on knowledge of operator's arity, it just parses generic abstract syntax tree.
Arity is property of functions, not expressions, so you would need static type system to assigning arity-types to expressions.
Also, you would still need parentheses to express structural data, where no operator arity is relevant.
There are no comments on this comment yet.
List needs parentheses because its parser does not depend on knowledge of operator's arity, it just parses generic abstract syntax tree.
Arity is property of functions, not expressions, so you would need static type system to assigning arity-types to expressions.
Also, you would still need parentheses to express structural data, where no operator arity is relevant.