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

Unless your WriterTo method does something different than the caller assumes it's going to do.

Unless the special functions are predefined by the language (e.g. Python's __str__, __len__, __iter__, etc.) or specified in an interface that the class explicitly inherits from, making assumptions that the language developers and I meant the same thing is careless at best and dangerous at worst.




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

Search: