Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Using Dispatch Tables to Avoid Conditionals in JavaScript. Parent comment
So all that extra code only serves to eliminate 2 options from the original switch.
I do like the approach in some cases, I just think that the example given probably wasn't the best choice.
There are no comments on this comment yet.
So all that extra code only serves to eliminate 2 options from the original switch.
I do like the approach in some cases, I just think that the example given probably wasn't the best choice.