4 ms·
Which is interesting given how easy it is to mutate in Python.
by jacobush 8y ago
Which is interesting given how easy it is to mutate in Python.
- hellofunk 8y agoEasy, yes. And more importantly, explicit, unlike the JS examples in this article.
- nerdponx 8y agoThis is only because good precedents were set by the built-in functions. Mutating functions return None, and only non-mutating functions return something non-trivial. It's purely convention, but therein lies the power of the core language setting a good example.