Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python Lists vs. Tuples. Parent comment
Ruby, since you said it allows mutable keys in dictionaries.
> Anyway, both languages use value-based hashing for dictionaries.
Neither Python nor Ruby has compound values. Object identities are primitive values.
> but I guess you are just expected to not mutate the keys?
I guess C programmers are expected not to use memory after they free it.
There are no comments on this comment yet.
Ruby, since you said it allows mutable keys in dictionaries.
> Anyway, both languages use value-based hashing for dictionaries.
Neither Python nor Ruby has compound values. Object identities are primitive values.
> but I guess you are just expected to not mutate the keys?
I guess C programmers are expected not to use memory after they free it.