News for hackers. Stuff that matters.
Re:Printf(“%s %s”, dependency, injection) by agumonkey on Tuesday October 19, 2021 @06:23AM (#28916620)
In FP everything is an argument anyway, but in OO land .. you always have to come up with a new concept to overcome the many limits.

That said, I think Scala did that, separating module/package level parameters and functional parameters can help designing/thinking.

my 2 cents

Re:Printf(“%s %s”, dependency, injection) by eru on Wednesday October 20, 2021 @01:32AM (#28927109)
In FP, we still come up with lots of new concepts. Especially when it comes to statically typing these 'just an argument anyway' constructs.

But yeah, you probably get something like 80% of the benefit of modern functional programming from just first-class functions, algebraic data types (and pattern matching over them), and immutability by default.