Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree with this. Even though I've used my Struct thing for a long while now _and_ subclassing dict directly in my case, I've been bitten by similar issues.

The syntactic sugar is very nice and saves up on oodles of brackets and quotes for nested objects, but if you try to mutate this sort of object you'll eventually run into trouble.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: