Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nsonha
· 4y ago · 0 comments
looks like the key thing is immutability
Comments
[–]
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