You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExpHP
changed the title
Requirements on difficulty switches having same number of cases is a bit strict
Requirements on difficulty switches having same number of cases is a bit unintuitive
Nov 13, 2021
Actually wait a second, I don't think the above is even how I would implement the current rule anyways, because it would be repeatedly checking nested blocks.
I don't think there's a reason why I can't simply cut off recursion at entry into a block.
(This is why I shouldn't make issues on things I haven't even implemented yet... cough)
Currently the rule is, "all difficulty switches in a statement must have the same number of cases".
However, a block is a statement. That means that:
runs afoul of this rule even though it looks like separate statements. But it's unclear how to loosen this rule; consider the following example
Should this be allowed? I am not so certain!!
The text was updated successfully, but these errors were encountered: