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
I don’t think we can change this without it being a breaking change. This is one of those confusing things when everything is mushed onto one line; using indentation would eliminate the ambiguity and reliance on precedence. I’m not sure that documenting the precedence of inline try versus loop is worth it, since such ambiguous code shouldn’t be encouraged in the first place.
Input Code
Expected Behavior
if
should be outside of both statements.Current Behavior
if
is insidetry
but outside ofwhile
.Possible Solution
Maybe add documentation or adjust precedence to be consistent.
Context
Not sure if this is a bug but I just want to understand how postfix conditionals work with other statements accurately.
https://coffeescript.org/#try:loop%20x()%20if%20y%0Atry%20x()%20if%20y
The text was updated successfully, but these errors were encountered: