General > General Technical Chat
ilogical resteraunt menu
electr_peter:
Even logical orders can be confusing
IDEngineer:
Copious use of parentheses resolves questions of precedence, even for those people who don't know the rules. Or those compilers that don't follow the set of rules you think they do.
coppice:
--- Quote from: Messtechniker on January 26, 2024, 07:39:23 am ---Missus: Could you please go down to the basement and see if there is any white wine?
Me: Came back with the answer: "Yes".
Missus: I expected you to bring the white wine!
Girls and boys will never understand each other. Go figure.
--- End quote ---
There is a class of person for whom this goes
Missus: Could you please go down to the basement and see if there is any white wine?
Me: If there is, how much should I bring back
Missus: <annoyed rant, because she hadn't thought things through this far, and was hoping someone else would resolve key details>
coppice:
--- Quote from: IDEngineer on January 27, 2024, 09:27:06 pm ---Copious use of parentheses resolves questions of precedence, even for those people who don't know the rules. Or those compilers that don't follow the set of rules you think they do.
--- End quote ---
Would that really be parentheses, or brackets? Others on this forum make fine distinctions, even though various dictionaries can't agree on the precise meaning of the - various - words (which) can [be] used {to} describe this effect.
IDEngineer:
I meant parentheses, the curved ones, not brackets nor braces. Parentheses are generally the characters used by C and Pascal and their many derivatives, which together represent the largest percentage of present day programming languages, in expressions involving math or logic. Brackets are more commonly used for array indexing and braces for initializing functions, arrays, etc.
I'm sure there are many exceptions and for the intent of this thread we don't need to make a big deal out of that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version