Re:Advantages of Functional Programming in Java 8
by douche on Tuesday September 06, 2016 @07:00AM
(#12435038)
Languages that were actually designed to be functional-first, but multi-paradigm, like F# also support this.
Though to be honest, not allowing free functions in Java or C# is kind of silly. It seems like the compiler could pretty easily autogenerate a static class per namespace to actually stick them into, so that it would really just be a bit of syntax sugar.
Though to be honest, not allowing free functions in Java or C# is kind of silly. It seems like the compiler could pretty easily autogenerate a static class per namespace to actually stick them into, so that it would really just be a bit of syntax sugar.