Closed GoogleCodeExporter closed 9 years ago
Adding this block should be easy, just copy the code for the 'if-return' block
and strip out the 'if' bits.
Blockly won't be creating this as a default block since a lot of academic
programmers object to having more than one return statement in a function. The
if-return blocks are a compromise that allow for guard statements, while
encouraging the use of a single return at the bottom.
Original comment by neil.fra...@gmail.com
on 1 Mar 2015 at 9:03
Original issue reported on code.google.com by
joeor...@gmail.com
on 6 Oct 2014 at 1:34