Why we don't use underbars

Arne Babenhauserheide arne_bab at web.de
Fri May 6 12:19:38 CDT 2011

On Thursday 05 May 2011 21:24:10 Matt Mackall wrote:
> I'm perfectly aware of that, but I've made a conscious and measured
> evaluation that being able to remember that "foo bar baz" is "foobarbaz"
> and not "foo_bar_baz" without needing a reference and without getting
> runtime errors completely trumps the minor readability nuisance.[1]

Thank you for your detailed answer! I’m currently rethinking my style for 
personal projects based on it. 

FOO_BAR_GOO_GAR_GAZ grows very unwieldy over time…
I used that style for constants in a personal 1-year project, and the code 
grew somewhat unreadable over time. 

Best wishes,

1w6 sie zu achten,
sie alle zu finden,
in Spiele zu leiten
und sacht zu verbinden.
→ http://1w6.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110506/292f926c/attachment.pgp>

More information about the Mercurial-devel mailing list