Thread (19 messages) flat view 19 messages, 7 authors, 2016-06-15

Re: [PATCH 5/6] Re: Remove mix of high and low-precedence booleans

From: Bill Pemberton <hidden>
Date: 2016-06-15 22:46:41

quoted
Booleans such as &&, ||, ! have higher precedence than and, or, not.
They should not be mixed.
But round brackets have higher precedence than both '&&' and 'and',
right?  If so, why thoses changes?
While those particular statements may be correct, mixing the low
precedence logical operators with the high precedence ones is likely
to introduce bugs down the road.  See the book "Perl Best Practices"
for more information on this.

-- 
Bill
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help