Allow for a faster way of writing conditions for ret statements.
For example:
func main() s32 {
var s32 myInt = ...;
ret myInt [x -> x > 64]
}
This will return myInt only if the condition defined on the label x is true. If the condition fails, the function will continue as normal. Additionally, the binding name can be skipped as it is x by default:
func main() s32 {
var s32 myInt = ...;
ret myInt [x > 64]
}
Allow for a faster way of writing conditions for
retstatements.For example:
This will return
myIntonly if the condition defined on the labelxis true. If the condition fails, the function will continue as normal. Additionally, the binding name can be skipped as it isxby default: