4 ms·
Using dashes in symbol names is problematic. It becomes impossible to differentiate my-var & my - var As variable declaration or assignment looks very sim
by gitgud 8y ago
Using dashes in symbol names is problematic. It becomes impossible to differentiate
my-var & my - var
As variable declaration or assignment looks very similar to the subtract expression... But if you enforce whitespace, then it's clearer I suppose...
- snazz 8y agoThe subtract expression in Lisp looks like (- my var) because Lisp uses prefix notation. You would never run into ambiguities since there are no infix operators in Lisp at all.
- kazinator 8y agoThere is a quite a lot of experience with dashes in names in FOSS because they are used in shell and Makefile programming, not only in Lisps. Git commands have dashes: git cherry-pick. Lots of hits with this: echo /usr/bin/-