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
We implemented a convenient reformatting of if-else statements to act as "early returns" at the start of functions in #7039.
Because of the planned introduction of a return keyword that actually performs early returns, we want to add a syntax for if-return guard statements like the following:
processData = \data ->
if dataIsInvalid data then
return ErrInvalidData
useData data
Once that is done, we should remove the if-else "early return" from #7039 and go back to the old formatting style for if-else.
The text was updated successfully, but these errors were encountered:
We implemented a convenient reformatting of
if-else
statements to act as "early returns" at the start of functions in #7039.Because of the planned introduction of a
return
keyword that actually performs early returns, we want to add a syntax forif-return
guard statements like the following:Once that is done, we should remove the
if-else
"early return" from #7039 and go back to the old formatting style forif-else
.The text was updated successfully, but these errors were encountered: