News for hackers. Stuff that matters.
Re:Public static void main(String[] args) is dead by vincnetas on Tuesday September 16, 2025 @01:14AM (#45258257)
I think all functions are associated with some class. But these classes sometimes are hidden from you and you don't need to know about them. Does that help you? What for would you use true free functions?
Re:Public static void main(String[] args) is dead by throwaway47461 on Tuesday September 16, 2025 @01:15AM (#45258265)
> What for would you use true free functions?

The same things people use free functions for in any other programming language.

Re:Public static void main(String[] args) is dead by rerdavies on Tuesday September 16, 2025 @01:19AM (#45258287)
Cluttering up global namespaces? ;-P
Re:Public static void main(String[] args) is dead by Mawr on Tuesday September 16, 2025 @03:11PM (#45266554)
> What for would you use true free functions?

I'm visibly shaking at this statement. What are you even saying here? A function is the most basic, fundamental unit of code organization. What Java does with its forced classes is a complete perversion of computation, sanity and anything reasonable.