On Wed, Jul 29, 2015 at 5:08 PM, Mikolaj Izdebski <mizde...@redhat.com> wrote:
> From C-style operators I would prefer single-character ones for two reasons:
>
> 1) Two-character operators may suggest short-circuit evaluation -
> "Requires: foo || bar" can be misunderstood as "require foo, or bar if
> and only if foo is not available", which is not how that works. There is
> no such problem with single-character operators. In other words,
> "|" and "&" operators are commutative, but "||" and "&&" are not.

Good catch, I intially think of this.

-- 

Yours sincerely,
Christopher Meng

http://cicku.me
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to