Due to the way we implemented switch cases as functions, some extra logic is required to determine if a switch is supposed to return. Currently returns in switches do nothing at all, in #161 a workaround is introduced that returns any value that is not null or undefined.
The result is that code flow will continue even though the executing switch statement executed a return statement.
Due to the way we implemented switch cases as functions, some extra logic is required to determine if a switch is supposed to return. Currently returns in switches do nothing at all, in #161 a workaround is introduced that returns any value that is not
nullorundefined.The result is that code flow will continue even though the executing switch statement executed a return statement.