News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by UncleEntity on Tuesday August 23, 2022 @09:43PM (#32574052)
> Python libraries kind of used to do this more, but seem to be doing it less now…

I’d argue that it has to do with C extensions making it a lot of work to get it right.

Some library code does it (which is where I learned how to do it ‘correctly’) but in general, run of the mill code it is pretty rare. Just something like an overloaded __add__ turns into a page and a half of code and there’s a lot of functions in the numbers protocol struct.

Labor of love really.

There are no comments on this comment yet.