On Wed Nov 8 14:42:54 2023 +0000, Conor McCarthy wrote:
I'm inclined to avoid adding new instructions if an existing one can do the job without too much trouble. I think checking `case_count` is not too much trouble, but Henri may disagree.
Sure, it's not much trouble. Though I basically see that as two instructions sharing the same handler: I'd expect that every time you find a `switch` you have to check what `case_count` is (or assume it in case one of two alternatives is illegal given the context), because the two cases are completely different. So at that point I find it simpler to just allocate two different handlers.