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
@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 This content has been proxied by September (3851b).Proxy Information
text/gemini