4 ms·
Can you share more info about the parentheses being a hazing test? I’ve seen Dylan syntax [1], but is there something else that shows the parentheses to be unne
by sahil-kang 6y ago
Can you share more info about the parentheses being a hazing test? I’ve seen Dylan syntax [1], but is there something else that shows the parentheses to be unnecessary in 2020?
[1] https://en.wikipedia.org/wiki/Dylan_(programming_language) https://en.wikipedia.org/wiki/Dylan_(programming_language)
- deleted 6y ago[deleted]
- praptak 6y agoI've had good experience with Closure's cautious approach to parentheses. It's not radical, in that it's still basically parentheses but their nesting is greatly reduced by combination of tricks: Flattening, if reversible. E.g. if something's always a list of pairs, then it's represented as a flat list with pairing inferred. Having shorthands in syntax, i.e. [a b c] is (vec '(a b c)).
- WalterGR 6y agoIn my admittedly limited experience with Clojure a few years ago, IIRC it seemed like it just replaced some parentheses with square brackets, but did not actually reduce the number of total brackets by much.