Branch: refs/heads/master
Home:
https://github.com/eclipse/golo-lang
Commit: 76afaa4b76c665ee6d075b3f794b60d6c94f1ab3
https://github.com/eclipse/golo-lang/commit/76afaa4b76c665ee6d075b3f794b60d6c94f1ab3
Author: Julien Ponge <
julien...@insa-lyon.fr>
Date: 2015-06-30 (Tue, 30 Jun 2015)
Changed paths:
M doc/control-flow.asciidoc
M samples/echo-args.golo
M src/main/java/fr/insalyon/citi/golo/compiler/ParseTreeToGoloIrVisitor.java
M src/main/jjtree/Golo.jjt
M src/test/java/fr/insalyon/citi/golo/compiler/CompileAndRunTest.java
M src/test/resources/for-execution/loopings.golo
M src/test/resources/for-parsing-and-compilation/loops.golo
Log Message:
-----------
[471130] Guarded loops
This introduces support for guards in foreach loops, as in:
foreach arg in args when arg: length() > 2 {
println(" " + arg)
}
This is syntaxic sugar, equivalent to:
foreach arg in args {
if arg: length() > 2 {
println(" " + arg)
}
}
Commit: c87d21f71e1d1491a5467316bef51529c0447259
https://github.com/eclipse/golo-lang/commit/c87d21f71e1d1491a5467316bef51529c0447259
Author: Julien Ponge <
jpo...@users.noreply.github.com>
Date: 2015-07-03 (Fri, 03 Jul 2015)
Changed paths:
M doc/control-flow.asciidoc
M samples/echo-args.golo
M src/main/java/fr/insalyon/citi/golo/compiler/ParseTreeToGoloIrVisitor.java
M src/main/jjtree/Golo.jjt
M src/test/java/fr/insalyon/citi/golo/compiler/CompileAndRunTest.java
M src/test/resources/for-execution/loopings.golo
M src/test/resources/for-parsing-and-compilation/loops.golo
Log Message:
-----------
Merge pull request #287 from jponge/feature/guarded-foreach
[471130] Guarded loops
Compare:
https://github.com/eclipse/golo-lang/compare/4ca9df3271a3...c87d21f71e1d