News for hackers. Stuff that matters.
Re:GraalPy – A high-performance embeddable Python 3 runtime ... by nextos on Wednesday September 18, 2024 @02:51PM (#41583942)
OP here, I think Python's OO is a bit suboptimal even if the goal was to have method-centric OOP like in C with classes. For example, mechanisms to hide information, a fundamental part of objects, are hacky. You need to use name mangling.

Same applies to FP, a few things are weird and crippled. IMHO, the net result is that Python code tends to look longer and much more "algorithmic" than in Ruby, Smalltalk or various Lisps, where the language favors lots of little functions.

Things are changing a bit, though. For example, pattern matching (PEP 622) brings some conciseness. Fixing those other issues would be great.

There are no comments on this comment yet.