4 ms·
A bit OT but what is the problem with omitting function arguments?
by Kiro 13y ago
A bit OT but what is the problem with omitting function arguments?
- wcummings 13y agoThey'll have the value undefined which will do god knows what after some implicit type coercion
- GeneralMayhem 13y agoNot necessarily anything as such, but it's the sort of thing that can easily lead to bugs if you don't know what you're doing. It's the only way to overload a function with multiple signatures, though, so most libraries and frameworks make heavy use of it.