Hacker News new | ask | show | jobs
by carlmr 2024 days ago
>Function programming is elegant and all unless you hit a part of problem fundamentally imperative or if there's a performance problem.

Most functional languages allow you to do imperative stuff. so this is not an issue. They just usually provide an environment where the defaults guide you to functional (immutable by default, option/result types instead of exceptions, making partial application of functions and piping easy, etc.).

A prime example would be F#. You can program pretty much the same as in C# if you need to, but there are a lot of facilities for programming in a more functional style.

1 comments

Exactly. F# does this really well imo.