3 ms·
> * lack of immutable vectors, alleviated via style conventions Note that mypy/typed python fixes this: if you annotate a function as returning (or accepting)
by joshuamorton 7y ago
> * lack of immutable vectors, alleviated via style conventions
Note that mypy/typed python fixes this: if you annotate a function as returning (or accepting) a Sequence/Collection/Iterable instead of a List, and attempt to mutate it, you'll get type errors. This is good practice anyway.
- pacala 7y agoThanks for the tip!