LambdaCore icon indicating copy to clipboard operation
LambdaCore copied to clipboard

Return using Exception not return_points.

Open Pebaz opened this issue 5 years ago • 0 comments

Returning from a function may work, but it is inconsistent and uses something that is not similar to a loop. If an error is created named ReturnError that holds the Value to return, it can escape any number of loops to return a value.

This may not be worth the effort to implement, but would simplify the inner-workings of LambdaCore and help the programmer's mental model when adding features.

Pebaz avatar May 29 '19 00:05 Pebaz