Hacker News new | ask | show | jobs
by macintux 1837 days ago
True, what I really want is referential transparency, not immutability per se.

I’ve only used tuples in Python as a small data structure, will have to experiment with using them as a list substitute, thanks.

1 comments

Just keep in mind that a tuple's elements can still be mutable, so it's not a "frozen" data structure throughout.