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

The problem isn’t meaning or intent its inconsistency of operator behavior.

1 + 1 + 1 has different operator behavior then 1 == 1 == 1. The operations here are not consistent and it’s not clear what happens if I overload the operators.

On the surface level python looks more beautiful. But mathematically speaking python is actually more ugly and more inconsistent with weird rules to make things look a certain way.



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

Search: