HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by _ZeD_ | Hacker News Reader
Full thread
_ZeD_
·
why not use namedtuples (or plain tuples) instead of dictionaries?
View on HN
dr_zoidberg
·
Dicts are the fastest dynamic structure out of the box. Tuples will bite you with immutability sooner or later.
boothead
·
I usually think of immutability in terms of saving myself from getting bitten :-)
dr_zoidberg
·
Touché! Thats a nice thought, however string concatenation with the += operator inside a loop is the kind of bite I was thinking about.
Reply on news.ycombinator.com