3 ms·
> Functional languages don't stop you from writing imperative code, they allow you to write code that isn't Functional languages are definitely about removing
by toast0 4y ago
> Functional languages don't stop you from writing imperative code, they allow you to write code that isn't
Functional languages are definitely about removing things or stopping things. Nothing stops you from naming a new variable everytime in C, but Erlang stops me from mutating variables. Only stack depth/lack of tail call optimizations stops me from using recursion to loop in C, but Erlang can only loop through recursion.
And Erlang is pretty pragmatic; some other functional languages are a lot more opinionated.