News for hackers. Stuff that matters.
Re:Fluent: Static Extension Methods for Java by rogerkeays on Monday July 03, 2023 @04:28AM (#36570280)
Also, creating a subclass just to add extension methods is definitely boiler plate. Util classes too, though they are useful for packaging functions at least.
Re:Fluent: Static Extension Methods for Java by kaba0 on Monday July 03, 2023 @06:15AM (#36570953)
Subclassing may not always be possible (final class, or method) and can break class invariants. Util classes with helper methods and/or extension methods are not prone to these problems.
Re:Fluent: Static Extension Methods for Java by rogerkeays on Monday July 03, 2023 @09:11AM (#36572392)
Yes, inheritance is a nightmare!