jscert / jsexplain

Apache License 2.0
26 stars 4 forks source link

Suggestion to make the control flow more explicit #8

Open brabalan opened 7 years ago

brabalan commented 7 years ago

In JSExplain, we only use let%ret for complex control flow, when several branches can continue with the same continuation. Example: http://www.ecma-international.org/ecma-262/7.0/index.html#sec-validateandapplypropertydescriptor

In our code, we should have an initial let%ref, a bunch of else if, and the in before step 6.

We could suggest to use this wording (start with else if if only one enter point in the control flow) for the spec.