Re:Java Is in Decline, and There's Data to Prove It
by yen223 on Sunday January 01, 2023 @09:04AM
(#34206319)
Can Java steal top-level functions already?
[ Parent
| on HN ]
Re:Java Is in Decline, and There's Data to Prove It
by pulse7 on Sunday January 01, 2023 @09:08AM
(#34206342)
Just use static methods for that. Disadvantage: you are forced to use package and class name spaces. Advantage: everything is inside some namespace.
Re:Java Is in Decline, and There's Data to Prove It
by jrpelkonen on Sunday January 01, 2023 @12:36PM
(#34208537)
Agreed. I also find static imports handy to simplify the code at the call site.