3 ms·
I think most of the non-bracket "punctuation" in Racket is caused by the kebab-case identifiers and to a lesser degree by ? and ! in function names. So in fact
by yorwba 9y ago
I think most of the non-bracket "punctuation" in Racket is caused by the kebab-case identifiers and to a lesser degree by ? and ! in function names.
So in fact "Other languages have more punctuation characters than Lisp." is not an objective statement at all, since it relies on the definition of punctuation, which is subjective or at least language-specific.
- munificent 9y agoGood point. I updated my little script to (roughly) take each language's identifier rules into account. Now "?" is considered an identifier character in Ruby and "-", "!", and "?" are punctuation in Racket. It gets a little fuzzy, of course because ">" works like punctuation in "(> 1 2)" but less so in "(number->string 123)". bracket punctuation life.java 13.25% 27.52% life.py 13.27% 21.95% life.rb 9.56% 23.29% life.scm 22.29% 24.81% This gets Racket down to having similar levels of punctuation but note that, of course, brackets are still significantly more common than other languages.