Since Verse requires an identifier before a code block, block
expressions are how you nest code blocks, and block
expressions behave similarly to code blocks.
As with code blocks, block
introduces a new nested scope body, constraining the lifetimes of any variables created in the block
in a way that they cannot be used outside of the block
.
expression0
block:
expression1
expression2
expression3

Unless there is an early exit, the block
expression uses the last expression executed in the block as its result. For example, if the last expression in the block is Example : int = 6
then the block
expression has 6
as a result.