| |
| | [No title] |
 | | Perhaps surprisingly, these very few functions (and the basic operators), are almost sufficient to write any Python program; specifically, the flow control statements ('if', 'elif', 'else', 'assert', 'try', 'except', 'finally', 'for', 'break', 'continue', 'while', 'def') can all be handled in a functional style using exclusively the FP functions and operators. |
 | | Functional programs bypasses this particular issue by simply not assigning values to variables at all. |
 | | Even though this functional example is more verbose than the imperative example, once you consider the utility functions for reuse, the new code in 'bigmuls()' itself is probably slightly less than in the imperative version. |
| gnosis.cx /publish/programming/charming_python_13.txt (2066 words) |
|