Hacker News new | past | comments | ask | show | jobs | submit login

> You can override just about anything in Python, including the meaning of accessing a property

JavaScript has getters that do the same [0]. You can even redefine 'undefined' depending on version and mode [1].

Is operator overloading really that much 'worse' in Python?

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[1] https://stackoverflow.com/a/8783528/




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

Search: