Hacker News new | ask | show | jobs
by zeckalpha 3705 days ago
> I need it.

Need is a strong word.

1 comments

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. :)

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