Ancestors

Toot

Written by Francisco Tolmasky on 2024-12-11 at 02:32

I love that the DOM classes has the same absurd property as Cocoa where the mutable classes inherit from the immutable ones. E.g., DOMRect inherits from DOMRectReadOnly. So rect instanceof DOMRectReadOnly does not in any way tell you if it is read only. To be clear, I don't like inheritance at all, so I am not proposing that there is some better inheritance tree. I also don't like mutability, so this is like the concentrated epitome of most of the features I dislike of imperative languages.

=> More informations about this toot | More toots from tolmasky@mastodon.social

Descendants

Written by Tobias on 2024-12-11 at 06:35

@tolmasky I would have exepected it to at least have an instance method à la isReadOnly but in absence of that, what a bummer. This is like mixing ADTs and OO and only taking the worse part of both.

=> More informations about this toot | More toots from krono@toot.berlin

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113631844386351772
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
243.091816 milliseconds
Gemini-to-HTML Time
0.446702 milliseconds

This content has been proxied by September (3851b).