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.
[ Parent
| on HN ]
Re:Fluent: Static Extension Methods for Java
by rogerkeays on Monday July 03, 2023 @09:11AM
(#36572392)
Yes, inheritance is a nightmare!