3 ms·
btw can't you potentially write methods that receive arbitrary number of arguments in java as well? https://docs.oracle.com/javase/1.5.0/docs/guide/language/var
by joelbluminator 7y ago
btw can't you potentially write methods that receive arbitrary number of arguments in java as well? https://docs.oracle.com/javase/1.5.0/docs/guide/language/varargs.html https://docs.oracle.com/javase/1.5.0/docs/guide/language/var...
- monkpit 7y agoYou’re referring to a variadic function, which can be written in most modern languages. The commenter you are replying to is talking about a function of fixed-arity, with a config object with required props. Which props are required? A Typed language will tell you immediately “for free”.