4 ms·
Just make every variable immutable. That is the only style guide you need to make the program part of the fp paradigm. The rest of the "functional patterns" flo
by crimsonalucard 9y ago
Just make every variable immutable. That is the only style guide you need to make the program part of the fp paradigm. The rest of the "functional patterns" flow naturally out of this restriction.
- joncampbelldev 9y agoIf the standard data structures in your language are mutable this will not save you. Luckily many languages like Java have nice third party persistent collection libraries
- crimsonalucard 9y agoYou can treat the variables as immuteable even if they aren't...