4 ms·
> "All operators have equal precedence, so parentheses are required..." Just to play devil's advocate (aka be annoying); parentheses are operators. Ref: https
by johnlbevan2 9y ago
> "All operators have equal precedence, so parentheses are required..."
Just to play devil's advocate (aka be annoying); parentheses are operators.
Ref: https://softwareengineering.stackexchange.com/a/208354/69247 https://softwareengineering.stackexchange.com/a/208354/69247
- Chris2048 9y agoI don't find that link convincing. For one thing, the premise is assumed in the question. Secondly, when it says "they also include ()[] as operators" is implies it is talking about language-specific terminology rather than a general term. WP describes: https://en.wikipedia.org/wiki/Operator_(computer_programming) https://en.wikipedia.org/wiki/Operator_(computer_programming... > Occasionally parts of a language may be described as "matchfix" or "circumfix" operators, either to simplify the language's description or implementation. Bu then, the term "operator" seems to also have mathematical roots: https://en.wikipedia.org/wiki/Operator_(mathematics) https://en.wikipedia.org/wiki/Operator_(mathematics) The relevant part seems to be the definition refering to syntax, or denotation: > Operator is also used for denoting the symbol of a mathematical operation. This is related with the meaning of "operator" in computer programming Now, whether "the symbol" implies a singular symbol, and excludes delimiter symbols might be a matter of semantics ;-)
- _dcwr 9y agoA devil's advocate is not an annoying person but someone who argues against something he truly believes in or hopes to be true in order to provide a debate and help prove the point in stronger ways and show onlookers that contrary opinions were considered. It comes from canonization process in Vatican where someone (who is not an actual satan worshiper or against the church) argued in favor of the devil (against the candidate) to force the other pro-sainthood side to provide good solid proof of the sainthood, miracles done, etc. of the candidate. What you're doing is just being annoying by nitpicking the casual wording. There is no debate to be had from "parentheses are kinda operators" and the meaning of the original line was understandable, even if you consider parentheses operators.