yaegi icon indicating copy to clipboard operation
yaegi copied to clipboard

Add option to produce array of results for blocks

Open firelizzard18 opened this issue 3 years ago • 2 comments

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.

firelizzard18 avatar Apr 14 '21 20:04 firelizzard18

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.

mvertes avatar Apr 14 '21 21:04 mvertes

FWIW, all three PRs are independent features. They don't build on each other.

firelizzard18 avatar Apr 14 '21 23:04 firelizzard18