Closed garritfra closed 2 years ago
Function::last_block
is useful for checking if the function always returns, for example
Function::last_block
is useful for checking if the function always returns, for example
But that can also be done via self.blocks.last()
, which is hardly any more code to write.
Fixes #17
Description
Function::add_block()
should return a reference to the created block.Changes proposed in this pull request
Function::add_block()
returns a reference to the created blockFunction::last_block()
, since it's mostly unnecessaryToDo