3 ms·
> However no one has yet figured out how to represent Lisp code in good a way that doesn't require a large number of parentheses, often stacked together in grou
by kazinator 10y ago
> However no one has yet figured out how to represent Lisp code in good a way that doesn't require a large number of parentheses, often stacked together in groups of three or four.
Ah, not so! In some ancient Lisp dialects decades ago, there existed an invention known as the "super bracket". Namely the closing square bracket ] would simultaneously close any number of outstanding open parentheses up to the nearest opening [. For instance [foo (bar (1 2 3] could be written instead of (foo (bar (1 2 3))). It's not really such a great idea so it didn't catch on.
- kazinator 10y agoLooks like it was none other than InterLisp which had this, mentioned in P. Gabriel's and G. Steele's Evolution of Lisp paper: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf P. 18.
- alkonaut 10y agoThanks, at least it seems to indicate that someone other than me had an issue with telling N parens from N-1 parens in a row. I think this is a pretty common syntax problem, it's for example why I prefer xml to json for human editable data despite the extra verbosity - each ending is explicitly labeled. The Foo(Bar(Baz))) calling style is of course equally broken.
- deleted 10y ago[deleted]