Re:Fluent: Static Extension Methods for Java
by rogerkeays on Monday July 03, 2023 @05:24AM
(#36570636)
You can call a static method on an instance. This project allows you to call static methods not defined within the instance's class.
[ Parent
| on HN ]
And what’s the benefit of that? Except maybe you can chain it and it looks a bit nicer
Tab completion is much better w/ (extension) methods.
I would pay like, $10,000 of my own money for extension methods like this (actually like Kotlin or Swift) in Typescript. That would solve so many abstraction design problems for me!!