develooper Front page | perl.perl5.porters | Postings from April 2016

Re: [perl #127921] possible inconsistency in "perlop" documentationon precedence of || and //

Thread Next
April 19, 2016 21:17
Re: [perl #127921] possible inconsistency in "perlop" documentationon precedence of || and //
Message ID:
Wolf-Dietrich Moeller wrote:
>In the text further below in perlop these operators are listed in
>*separate* sections:
>*  C-style Logical Or
>*  Logical Defined-Or
>This means that "C-style Logical-Or" should have higher precedence than
>"Logical Defined-Or".

The problem, such as it is, is entirely in the documentation; we should
certainly not change the actual operator precedence.

I think "covered in precedence order" doesn't require that there be only
one section per precedence level.  Two operators treated serially that
have the same precedence still qualify as being in precedence order.
But the sectioning is in fact mostly one section per precedence level,
and consistency would be worthwhile.  In addition to "||" and "//",
"~~" has a separate section despite having the same precedence as "=="
and other operators.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About