News for hackers. Stuff that matters.
Re:No ifs...alternatives to statement branching in JavaScript by davidw on Saturday August 07, 2010 @02:24AM (#1583168)
The program still branches (decides which code path to follow) - it just does it with a different mechanism, for instance pattern matching.
Re:No ifs...alternatives to statement branching in JavaScript by BoppreH on Saturday August 07, 2010 @03:05PM (#1584081)
Yes, pattern matching fits the bill, thanks.