Why does defining a vararg method define a zero argument method?

This seems a clear case in which the function f should either take a Vector/“require one positional argument” or f() is never intended to be called (if this annoys you, you can require the first positional argument manually). Function with methods specialized for different types either specialize on a required field, or have no reason to ever be called without arguments.

1 Like