3 ms·
Good point. I updated my little script to (roughly) take each language's identifier rules into account. Now "?" is considered an identifier character in Ruby an
by munificent 9y ago
Good 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.