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

Python you have to learn something arbitrary for each dunder method you want to define/override. + —> __add__, * —-> __mul__, etc

C++ it’s just one pattern to learn, x -> operatorx



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

Search: