5 ms·
I don't see closures. That's one of the most powerful aspects of Javascript.
by warfangle 16y ago
I don't see closures. That's one of the most powerful aspects of Javascript.
- vjeux 16y agoJust added a part on Closure: http://blog.vjeux.com/2011/javascript/jspp-morph-cpp-into-javascript.html#closure http://blog.vjeux.com/2011/javascript/jspp-morph-cpp-into-ja... It was a bit more difficult than expected :(
- iam 16y agoGood luck, last time I tried nested lambdas in VC10 they weren't able to capture local variables from any context except the immediate outer context. This makes doing something like e.g. map(map(...)) extremely annoying. Javascript (nor does, really, any other proper closure implementation) has no such issues.
- vjeux 16y agoI started developing with Visual Studio but their C++0x implementation is far from complete. Indeed, the following easy code ( http://pastebin.com/bjFWBrJq http://pastebin.com/bjFWBrJq ) does not compile under Visual Studio: "function returning function is not allowed" It works fine in g++ though.