[Rpm-maint] [rpm-software-management/rpm] Ternary op discussions (#852)
Michael Schroeder
notifications at github.com
Tue Sep 24 11:20:31 UTC 2019
With the referenced pull request you can use && and || for alternate/default:
`%foo && %bar` is `%bar` if `%foo` is true, otherwise `0`
`%foo || %bar` is `%foo` if `%foo` is true, otherwise `%bar`
I think people are somewhat more used to this than the degenerate `?` and `?!` forms that aren't used in any other programming language.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/852#issuecomment-534512964
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190924/e4c2ec5c/attachment.html>
More information about the Rpm-maint
mailing list