|
|
|
|
|
by marcosdumay
1420 days ago
|
|
The author seems as confused as the people he complains about. Just his example of `x = a ? b : c`, I never saw anybody try to claim code like this makes a language imperative. Instead, I've seen many people calling this logic "functional if". If you go with his definition, only simple variable declaration is declarative. (By the way, a very popular definition is that imperative languages have flow, not flow control. AKA, it makes a difference if you go and execute the instructions on a different order. That one is reasonable, but then, why single out non-associativity of operations when there are many other things that no language makes non-associative?) |
|