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
Should deprecate case/cases blocks with match statements inside of them in favor the Python-style match block with case statements inside of it. However, since this is inconsistent with the stand-alone match <pat> in <it> statement that puts the pattern after the match keyword, we'll also want to add a new stand-alone match statement that puts the item to be matched against after the match keyword like the Python syntax. For that, the proposed syntax is:
match <item> with <pattern>:
...
The text was updated successfully, but these errors were encountered:
case/match syntax is now deprecated in favor of match/case or cases/match syntax. Unsure whether match ... with syntax makes sense to add or not; seems like supporting it alongside match ... in syntax could be quite confusing.
Should deprecate
case
/cases
blocks withmatch
statements inside of them in favor the Python-stylematch
block withcase
statements inside of it. However, since this is inconsistent with the stand-alonematch <pat> in <it>
statement that puts the pattern after thematch
keyword, we'll also want to add a new stand-alonematch
statement that puts the item to be matched against after thematch
keyword like the Python syntax. For that, the proposed syntax is:The text was updated successfully, but these errors were encountered: