Re: String concatenation design



"Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx> writes:

andy@xxxxxxxxxxxxxxxxxxxxxxxxx wrote:
Rob Thorpe wrote:

Don't do what C, C++ and Perl do, and have 15 levels with slightly
different priorities. These languages are popular but their precendence
levels aren't.

What evidence is there to support your claim that the precedence levels
are unpopular?

The GNU style guide is milder:
"Instead, use extra parentheses so that the indentation [of
expressions] shows the nesting:"

That's not a general dictum. It's specifically in reference to
splitting a long expression into multiple lines.
--
"Now I have to go wash my mind out with soap."
--Derick Siddoway
.



Relevant Pages

  • Re: Dangling else
    ... If a language doesn't have precedence levels, then such expressions ... account is just badly designed, ...
    (comp.compilers)
  • Re: String concatenation design
    ... What evidence is there to support your claim that the precedence levels ... use extra parentheses so that the indentation [of ... Emacs C-mode makes writing long conditional expressions easier, ... since C programmers tend to like using simple editors. ...
    (comp.programming)
  • Re: String concatenation design
    ... What evidence is there to support your claim that the precedence levels ... are unpopular? ... place for the binary comma operator, ... use extra parentheses so that the indentation [of ...
    (comp.programming)