2 ms·
There's no reason why there should be two kinds of things code can be made up of. (statements vs expressions) In a well-designed language, everything that is a
by technomancy 17y ago
There's no reason why there should be two kinds of things code can be made up of. (statements vs expressions) In a well-designed language, everything that is a statement in Python would just be implemented as an expression that returns nil.
- rbanffy 17y agoInteresting. I was under the impression that def x(a):... was only a pretty way to say x = function(a)... I have to agree print is a weird thing, but what other statements bother you so much?