News for hackers. Stuff that matters.
Re:Functional Programming – How and Why by theteapot on Monday January 02, 2023 @02:27AM (#34215307)
> Languages like JavaScript and Rust (and Go?) have blurred the lines between purely functional and purely imperative. I think I prefer that compromise position myself.

What? The line blurring ones are the ones taking the comprising position right? So you're saying you prefer Javascript, Rust and Go?

Re:Functional Programming – How and Why by jemmyw on Monday January 02, 2023 @05:25AM (#34216360)
Yes I personally find those languages to be the sweet spot between very object structured like Java and C# (although I haven't used either for 15 years so I can't speak to how they're currently used) and FP languages. Javascript a little less so, it's just very flexible and Typescript adds the typing layer. Rust especially seems to take just enough of the FP style to get some nice benefits while also being a traditional imperative language. Just my personal opinion of course, I'm not an advocate for any particular style.
Re:Functional Programming – How and Why by kaba0 on Tuesday January 03, 2023 @10:18AM (#34232413)
Both C# and Java have incorporated many things from the FP paradigm.