Re:Functional Programming – How and Why
by valenterry on Tuesday January 03, 2023 @01:38AM
(#34228507)
To give a concrete example: Haskell supports something called do-notation. You cannot "replace" parts of it, because it is syntactic sugar that will turn into a number of expressions. But all of those expressions are then RT. In the same way you can have a C++ program that is FP (completely RT) but uses templates, which are obviously not "replacable". I hope that makes it more clear.
[ Parent
| on HN ]
There are no comments on this comment yet.