3 ms·
Python can do all that. It doesn't force you to do it, and handling expression trees may be a bit complicated (using ast). For me the main defining feature of
by bayesian_horse 7y ago
Python can do all that. It doesn't force you to do it, and handling expression trees may be a bit complicated (using ast).
For me the main defining feature of functional programming is the ability to pass functions and the ability to avoid side effects.
If I remember correctly, I often had trouble with side effects in R.
- Cosi1125 7y agoCould you elaborate on that? R is not a pure functional language (like, e.g., Haskell), so it's possible to produce side effects, or even "leak state", but it's hard to do it accidentally.