From ngompa13 at gmail.com Sat Jan 5 12:41:50 2019 From: ngompa13 at gmail.com (Neal Gompa) Date: Sat, 5 Jan 2019 07:41:50 -0500 Subject: [Rpm-ecosystem] Triple operator for conditional shortcut - choosing the best notation In-Reply-To: <1868915375.29945904.1546167468493.JavaMail.zimbra@redhat.com> References: <1861842909.29945866.1546167148564.JavaMail.zimbra@redhat.com> <1868915375.29945904.1546167468493.JavaMail.zimbra@redhat.com> Message-ID: On Sun, Dec 30, 2018 at 5:57 AM Pavlina Moravcova Varekova wrote: > > Hi, > I plan to implement "Triple operator for conditional shortcut". > (https://github.com/rpm-software-management/rpm/issues/115.) > There are several possibilities that can be used: > > %{?{condition}:true:false} and %{!?{condition}:false:true} > > or > > %{?{condition}?true:false} and %{!?{condition}?false:true} > > or > > %{?:condition:true:false} and %{?!:condition:false:true} > > From the implementation point of view they are quite similar, so please does any of the notations look appropriate for you? Which of them do you prefer? > > For more details see. https://github.com/rpm-software-management/rpm/issues/115. > The first option makes sense to me, since it trivially expands the existing conditional shortcut form %{?condition:true} / %{!?condition:false}. -- ?????????/ Always, there's only one truth!