3 ms·
Use dashes for separators like in Lisp.
by jhuni 14y ago
Use dashes for separators like in Lisp.
- LeonidasXIV 14y agoJust it doesn't work in most languages, as the - sign is usually the minus operator. In Java and Python 3 for example you can use Unicode in identifiers, maybe you can use mdash there (unless they forbid punctuation characters).
- NateEag 14y agoFor Emacs users, there is the wonderful package Smart Dash Mode: http://malsyned.net/smart-dash.html http://malsyned.net/smart-dash.html It takes a pretty good stab at whether you want a dash or an underscore, based on context. It's a whole lot easier on the wrists. (The only problem is you start to wish you had it everywhere, not just in Emacs.)
- michaelcampbell 14y ago> (The only problem is you start to wish you had it everywhere, not just in Emacs.) Which is the cruelest joke of most of emacs' functionality, for me.
- LeonidasXIV 14y agoWow, as an Vim user, I think this is seriously cool. Now it'd need to support camelCode as well, so when I write camel-code in JavaScript, I get the right thing. That'd be awesome.
- sethg 14y agoFrom reading PEP 3131 and UAX 31, it looks like the only non-ASCII punctuation mark that would be permitted is U+2040 CHARACTER TIE (⁀).
- jhuni 14y agoIn Perl 6 - is the infix minus operator and a valid delimiter.