logoalt Hacker News

throwawaymathslast Thursday at 8:12 AM0 repliesview on HN

well probably part if the reason for example in python, you cannot use the latter for x an integer but you could if x were a dict or a map!!

that's probably why!!

but don't forget, there are core routines that must be used to set certain data that are of the latter form, so at some level you have no choice.

    d = {'foo': 1}
    d.pop('foo') # <== mutating function call