Closed kevinresol closed 7 years ago
How about merging non-blocks too though, i.e. roughly like so:
switch [e1.expr, e2.expr] {
case [EBlock(e1), EBlock(e2)]: e1.concat(e2);
case [EBlock(e1), e2]: e1.concat([e2]);
case [e1, EBlock(e2)]: [e1].concat(e2);
default: [e1, e2];
}
Or what kind of bug would the error help to protect against?
done
Awesome, thanks :)
Would merge the contents of two
EBlock
s