08:43 | <pokute> | I remember seeing horrible implementations of overloading in JS: function foo(index, name) { if (name === undefined) name = index; ... } that devastates readability. |
14:22 | <ljharb> | it used to be very common in the node ecosystem to have an optional argument be “not at the end”, so that kind of argument shuffling would end up being gross boilerplate at the beginning of most functions. I’m very glad we’ve all collectively stopped doing that, for the most part |