4 ms·
" They're sooooooooo much easier to write than anything for classical languages because it's so easy to do in JavaScript." You can do that in a language with c
by discreteevent 12y ago
" They're sooooooooo much easier to
write than anything for classical languages
because it's so easy to do in JavaScript."
You can do that in a language with classes and even one with optional types e.g. you can use jasmine perfectly well to mock typescript objects (because they are just JavaScript dynamic objects)
" I have to
make classes and meta classes and all kinds of
other indirection just so I can make an Event
system that is generic."
I remember reading Gilad Bracha saying somewhere that enabling exactly this kind of system was exactly one of the use cases for Dart which is class based with optional types. You can have your cake and eat it too!