3 ms·
Faster is not even the most relevant reason why one should (and would) choose 0 == flag. edit http://news.ycombinator.com/item?id=2082165 http://news.ycombinat
by jat850 16y ago
Faster is not even the most relevant reason why one should (and would) choose 0 == flag.
edit
http://news.ycombinator.com/item?id=2082165 http://news.ycombinator.com/item?id=2082165 hit on it perfectly.
- redthrowaway 16y agoIt's still hard to read.
- bd_at_rivenhill 16y agoNot when you get used to it.
- redthrowaway 16y agoThat's what they said about Lisp and Perl.
- ehsanul 16y agoI can't tell whether you're just being tongue-in-cheek, or perfectly serious. I hope the former.
- redthrowaway 16y agoLittle of both, really. I actually think Lisp is beautiful, although it can be difficult to read. As for Perl... http://www.foo.be/docs/tpj/issues/vol3_2/tpj0302-0012.html http://www.foo.be/docs/tpj/issues/vol3_2/tpj0302-0012.html No excuse.
- natep 16y agoI don't think you're supposed to be able to get used to obfuscated anything. By that metric, C is equally unreadable: http://ioccc.org/ http://ioccc.org/ I've seen very readable perl code, although I won't use that to make sweeping generalizations about the entire language.
- redthrowaway 16y agoTo be fair, I never said C was pretty. I have no real problem with Perl aside from its overabundance of punctuation.
- wnoise 16y agoIt is for those that haven't fully internalized the symmetry of ==. Is it a lack of effort, or a lack of ability?
- redthrowaway 16y agoThat's a pretty condescending thing to say. To answer your rhetorical question, we are taught from elementary school to say, "x = 3", not "3 = x". Yes, it's the same, but it's jarring.
- Jach 16y agoI remember getting marked off once in either my algebra 1 or geometry class for leaving some answers in the form "3 = x". (What, you gave me an equation of "5 = 3x - 4"! It's harder to follow the work you make me do if I suddenly swap everything.) Anyway, I never found it jarring, though I can see why others might. (And if you've never had exposure to TI basic.. 3->x.)
- redthrowaway 16y agoTI BASIC kinda reminds me of assembly in that way.