See this code:
def static void main(String[] args) {
var i = 0
while(true) {
i = i+1
if(i>10) break
}
}
There is compilation error on "break", it seems xtend doesn't support "break'. What should I do now?
For this simple example, I can change it to:
while(i<=10) { i = i+1 }
But if the logic is complex, the "break" is very useful.