News for hackers. Stuff that matters.
Re:No ifs...alternatives to statement branching in JavaScript by aufreak3 on Friday August 06, 2010 @10:53PM (#1582971)
From the title, I was expecting something interesting like "SubText", or at least some kind of talk about dispatch :) Using &&, || etc gets you terse code, but the branching that you mentally work out is exactly the same.

.. unless you use the && and || so much that you end up chunking out specific patterns of usage without having to explicitly think about the branching.

.. which you can do with if as well.

There are no comments on this comment yet.