@vjeux @brendaneich My remark wasn't about React specifically, just about the class syntax. Imo it's unneeded sugar.
-
-
Replying to @yoshuawuyts
@vjeux@brendaneich We can't just keep adding stuff to the language. Good design is about taking things away, and we're not doing that.2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
@vjeux@brendaneich Everything classes do can be achieved with prototypes. Easily. Classes are just added for the sake of familiarity.6 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts@BrendanEich at fb we used to write classes the pure js way by creating a fn and them mutating the prototype directly1 reply 0 retweets 0 likes -
Replying to @Vjeux
@Vjeux@BrendanEich Similar to this? Was curious why you chose to not do that, could you enlighten me? -- https://gist.github.com/yoshuawuyts/1df67cf3feb5816728e8 …5 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts@BrendanEich using prototype you trade the memory cost for an additional lookup which is likely going to be cached1 reply 0 retweets 0 likes -
Replying to @Vjeux
@Vjeux@BrendanEich I tend to stay away from complex inheritance patterns, so I can't really comment on the benefits of classes vs prototype3 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts@BrendanEich using prototype you add an additional lookup of __proto__ but you define those methods only once per class1 reply 0 retweets 0 likes -
Replying to @Vjeux
@Vjeux@BrendanEich Isn't is so that with `extends` you copy the properties of the target rather than referencing them?1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts@BrendanEich hopefully this gist clarifies what i'm talking about https://gist.github.com/vjeux/24bb600d563e6b0e68c6 …1 reply 0 retweets 0 likes
@Vjeux @BrendanEich Right, we're on the same page now. I actually asked about the React.future api before. -- https://github.com/reactjs/react-future/issues/9 …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.