Skip to content

Comment on Underscores are stupid? Get a Japanese keyboard

Comments

Use dashes for separators like in Lisp.

Just 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).

For Emacs users, there is the wonderful package Smart Dash Mode: 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.)

Wow, 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.

> (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.

From reading PEP 3131 and UAX 31, it looks like the only non-ASCII punctuation mark that would be permitted is U+2040 CHARACTER TIE (⁀).

In Perl 6 - is the infix minus operator and a valid delimiter.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.