Huh, at first I thought this could be done with a macro (not that I'd
recommend using any such macro in actual code!), but when I tried I
couldn't quote an incomplete block:
julia> :(end)
ERROR: syntax: unexpected end
Looking at the underlying Expr for :(begin end) it becomes clear why
this is: the block itself is a single node in the AST (and what else
could it be, anyway). It's an interesting limitation though which
took a few minutes of digging to understand. Now, messing with the
syntax of basic blocks is something you can do with the C
preprocessor... but you inevitably feel rather dirty after doing so
:-)
By the way, what you're proposing is actually a new piece of syntax
rather than the addition of a function.
~Chris