Helge Heß on Nostr: Apart from #NeXTstep one of the environments which I found most inspiring (whether ...
Apart from #NeXTstep one of the environments which I found most inspiring (whether practical or not) is #Self. It is a #Smalltalk, but w/o classes. To create new objects you prefill one with the methods and defaults value you want, and then just copy it for use. And the fun thing is, even inheritance works through the prototypes.
And yes, this is how JavaScript works too, I think the only mainstream prototype based language. First thing people usually do is add classes 🙈
https://selflanguage.orgPublished at
2023-08-31 21:58:50Event JSON
{
"id": "a619595404c8a085103b3cdbfae28fb534cbe42da1b2aacf75c6d86b18d8f882",
"pubkey": "9bddd4578b658620bdbf06f97fb8f978c08b641d1d0248a613f552d7ef7f709a",
"created_at": 1693519130,
"kind": 1,
"tags": [
[
"t",
"nextstep"
],
[
"t",
"self"
],
[
"t",
"smalltalk"
],
[
"proxy",
"https://mastodon.social/users/helge/statuses/110986469758893000",
"activitypub"
]
],
"content": "Apart from #NeXTstep one of the environments which I found most inspiring (whether practical or not) is #Self. It is a #Smalltalk, but w/o classes. To create new objects you prefill one with the methods and defaults value you want, and then just copy it for use. And the fun thing is, even inheritance works through the prototypes.\nAnd yes, this is how JavaScript works too, I think the only mainstream prototype based language. First thing people usually do is add classes 🙈\nhttps://selflanguage.org",
"sig": "2da06747a5f9dabc547a521194f97caccdc9103a178a7530ab88270138cd7a6bc4e66277218a18fd9dd423a8c75ce56dae45908d7b60c650e9e8819de1f6bb15"
}