News for hackers. Stuff that matters.
Re:_Application.Run(Object, Object, Object, Object, Object, ... by mileza on Monday January 10, 2022 @09:54AM (#29875693)
This kind of function overload is present everywhere in the Java collection framework (and probably other libraries). It is a performance optimization (variadic arguments in Java require creating an array), and variadiac overloads also exist (Map.of needs a list of Map.Entry for type safety) for creating collections of any size.

https://docs.oracle.com/en/java/javase/11/docs/api/java.base...

There are no comments on this comment yet.