Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
nsonha
4y ago
0 comments
Share
looks like the key thing is immutability
0 comments
default
newest
oldest
aix1
4y ago
To clarify, both named tuples and dataclasses can be immutable (the former are always immutable and the latter can be made immutable with `frozen=True`).
There is no way, however, to make a named tuple
mutable
.
dreamofkoholint
4y ago
Key thing for me was the ability to add type hinting
j
/
k
navigate · click thread line to collapse