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
Same problem as with match that you could only have a single "elif" as duplicate keys are forbidden. I would also like to see a real life use case because i didn't really have a need when writing recipes.
you could only have a single "elif" as duplicate keys are forbidden.
Ugh, right. Even a single elif would be better than none though (IMO)
I would also like to see a real life use case because i didn't really have a need when writing recipes.
Happens all the time to me that I need to distinguish 3 or 4 out of (linux,osx,unix,win). Of course it's possible to work around this by opening a new - if:, but that's extra cognitive overhead - correctly parsing multiple if-statements to check which ones do or don't apply is easy to get wrong (which was the main issue I wanted to solve with #1155)
Sometimes we need to distinguish things in more than two ways, the most common case being linux-osx-win. It should be possible to write
rather than having to slice things into repeated if-conditions.
The text was updated successfully, but these errors were encountered: