Golo – a lightweight dynamic language for the JVM(golo-lang.org)
golo-lang.org
Golo – a lightweight dynamic language for the JVM
http://golo-lang.org/
2 comments
Just from looking at your example here, and not looking at the docs, I'd say that `{x}` and `-> x` both return a function which evaluates `x` and returns the result; so `-> {x}` is equivalent to `{{x}}`, i.e. it returns a function which returns a function which returns `x`.
I understand that there was a specific intention in using the term lightweight, but the proper term would have been small. This is a small language, but it is most certainly not lightweight. There really isn't such thing as a "lightweight language for the JVM" and that isn't the fault of the language, but rather the JVM. Lua, for example, is a lightweight language.
e1() has expected behavior but e2() does not and e2()() has expected behavior. Not sure why?