Is it possible to use Java lambdas? Follow Kuruhuru Created January 18, 2019 11:05 Hello guys! :) Is it possible to use Java lambdas in MPS? I tried to add BaseLanguage.jdk8 but I could not find how to use Java lambdas.
No, lambdas have not be implemented for BaseLanguage. The baselanguage.collections language provides closures to BaseLanguage. Although intuitive to use, the syntax differs from Java lambdas.
Vaclav
Vaclav, can I for example to write something like this with closure?
Yes, you can. I look like this, though:
Thread t = new Thread({ => foo(); });