yaegi
yaegi copied to clipboard
Add option to produce array of results for blocks
This PR adds an option, interp.Options.BlockStatementAsArray
, which configures the interpreter to return an array of results for each statement of a block, instead of just the last statement.
Thank you for your proposal, but please, wait a little so we can settle the previous ones. It's not a go yet for #1078 and #1079, we need a bit of a design review first before jumping on coding, and I still have concerns. I will provide more details soon.
FWIW, all three PRs are independent features. They don't build on each other.