mikedilger on Nostr: There are so few actual programming situations that require class inheritance that it ...
There are so few actual programming situations that require class inheritance that it isn't worth putting it into the language, especially given all the nightmares it can bring about (especially multiple inheritance)
GUI toolkits and the web DOM (a similiar thing) are about the only places where inheritance is the right solution.
Published at
2024-04-15 23:35:27Event JSON
{
"id": "07367c110c25b09259570d88f3672ed70b1d9c73301f18981414675ff0e9c490",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1713224127,
"kind": 1,
"tags": [
[
"p",
"d0debf9fb12def81f43d7c69429bb784812ac1e4d2d53a202db6aac7ea4b466c"
],
[
"e",
"fe8b0b925fec5f1ccfa3c9f4e521330cb41878c272fe78f75e2137e53caa6fb1",
"wss://nostr.wine/",
"root"
]
],
"content": "There are so few actual programming situations that require class inheritance that it isn't worth putting it into the language, especially given all the nightmares it can bring about (especially multiple inheritance)\n\nGUI toolkits and the web DOM (a similiar thing) are about the only places where inheritance is the right solution.",
"sig": "223374c878ece0487eb47f81cb4d1e4c38cfe4d20f0ed2d269097afa48e09fcc111921c684d9cfa51fcb277d5b9ef9c5697bfad415267a3a4ac56c9326e5717f"
}