Robert Dewar escreveu:
> On 4/12/2012 10:48 AM, Andrew Haley wrote:
>
>> Ultimately, it's a matter of taste and experience.  I'm going to find
>> it hard to write for people who don't know the relative precedence of
>> &  and | .
>
> There are probably some programmers who completely know ALL the operator
> precedence rules in C. There are probably some subset of those who feel
> free to write code that takes full advantage of these rules. I would
> hate to read code written by such people :-)

  I know the different precedences (well I some/most times get confused
with the order of some because I almost always use parenthesis). I prefer
to think of && and || with same, left to right precedence.

  There are people that require (a)?(b):(c) to be in parenthesis because
they find the precedence rules confusing.

  And there are all the extra parenthesis added to avoid surprises after
macro expansion, but people usually do not read macro expansions :-)

Paulo

Reply via email to