Remix.run Logo
vincnetas a day ago

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?

throwaway47461 a day ago | parent | next [-]

> What for would you use true free functions?

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

rerdavies a day ago | parent [-]

Cluttering up global namespaces? ;-P

18 hours ago | parent [-]
[deleted]
Mawr 11 hours ago | parent | prev [-]

> 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.