Hacker News new | ask | show | jobs
by callahad 3705 days ago
In this case, "need" refers to the "if (x === undefined) { x = y }" pattern. Which is absolutely a need when implementing functions with variable arity.

If I need that pattern, I'd rather write it declaratively than imperatively. :)

1 comments

Variable arity is exactly the thing to which I refer. It isn't needed.