3 ms·
> Just don't use closures :) So very much not Javascript then
by almost 15y ago
> Just don't use closures :)
So very much not Javascript then
- FabricPaul 15y agoClosures break the high-performance part of things. If we could have just used JavaScript, we would have done so - KL is as close to JavaScript as we can get, and still offer native, multi-threaded performance. If we introduce inferred types, then the only difference will be 'no closures'.
- almost 15y agoThat makes sense, I'm sure it is hard to optimize closures and untyped code. However, if you remove those you no longer have JavaScript so it is incorrect to say that you have made Javascript fast, you've just created a different language and made that fast. Of course if it plays nicely with Javascript that's cool, but please say that!
- FabricPaul 15y agoI agree. I have made a separate post on this thread that calls this out. Thanks -Paul