Hacker News new | ask | show | jobs
by HelloNurse 256 days ago
Of course I can overload >> in Python, but I cannot foul up output stream state because it doesn't exist. Formally there is little difference between C++ and Python operator overloading and both languages have good syntax for it, but C++ has many rough edges in the standard library and intrinsic complications that can make operator overloading much more interesting in practice. For instance, overload resolution is rarely trivial.
1 comments

It is only one pip install away, if anyone bothers to make on such set of overloads.
People don't though. That's the big difference. There's a certain taste in the Python community.