3 ms·
Extension methods are basically just static methods in a helper class that takes the to be extended class as their first argument, and a bit of syntactic sugar
by kaba0 3y ago
Extension methods are basically just static methods in a helper class that takes the to be extended class as their first argument, and a bit of syntactic sugar on top. That is absolutely imitable in Java.
- fiddlerwoaroof 3y agoYou can imitate it in Java, but the ergonomics are worse.