3 ms·
Languages with immutable data structures are relatively rare. With its high level focus python could have been one of them, but went for different trade offs.
by arijun 3y ago
Languages with immutable data structures are relatively rare. With its high level focus python could have been one of them, but went for different trade offs.
> In more sane languages, the expression [] means give me an empty list value, nothing more and nothing less
What is an “empty list value”?
- dragonwriter 3y agoPython has immutable data structures, lists just aren't one of them. (Tuples are. So are, unlike in some languages, strings.)