-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the else
branch of a conditional optional
#1657
Comments
All |
Why is that? I too was tempted into simply using |
I'm all for an |
I'm still not totally sold, but if we did implement this, how about a function called One reason I'm not totally sold is that it seems like this could be done in shell. For example, for the use-case in the issue, you could do:
|
Personally I want to write literally the minimum amount of shell ever possible. I realize part of that is counter to using just at all, but certainly I try to minimize any shell I write regardless. Here are two places (the other a few lines down, where the condition is inverted) where I basically use the workaround discussed here -- I do have to say I personally find it surprising to be missing but I'm simply someone who's used / evaluated |
+1 - I'm using I think |
Okay, I think I'm sold. If anyone wants to take a crack at this, it would make a good first PR! |
Nice, appreciate it! I won't have time to look at this for a few months (and I have to brush up on my Rust). But if it's still available then, I'll take a crack at it! |
Awesome, thank you! |
I have the following recipe:
Which works great! But, it gives an error if I don't include a dud
else
block.It would be nice if it were optional
The text was updated successfully, but these errors were encountered: