News for hackers. Stuff that matters.
Re:React I love you, but you're bringing me down by rileyphone on Tuesday September 20, 2022 @12:37PM (#32914225)
I think the problem is ES6 classes just aren't very flexible or expressive, compared to systems like Ruby, Smalltalk, or CLOS. For a lot of programmers, half-assed classes are worse than no classes, even when they can help with organizing state and behavior.
Re:React I love you, but you're bringing me down by lmm on Tuesday September 20, 2022 @05:54PM (#32918317)
This is backwards. Even in ES6, classes already too flexible and expressive: they allow you to express a bunch of things that don't make sense.
Re:React I love you, but you're bringing me down by pjmlp on Tuesday September 20, 2022 @12:48PM (#32914400)
They are as expressive as SELF, maybe time to learn how to use them?
Re:React I love you, but you're bringing me down by rileyphone on Tuesday September 20, 2022 @04:53PM (#32917663)
Javascript's prototypes are more expressive than its classes, but still come short of Self on a few levels:

1. Self's prototypes support multiple delegation while JS objects only have one prototype (can be fixed with Proxies).

2. Javascript objects lack a universal clone method.

3. Self is entirely message based, while JS is property based.