Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multiply
#5
In QM are only 3 precedence groups of binary operators. First: + - * / % | & << >> ^ ~. Second: = != < > <= >=. Third: && ||. I don't like when there are many precedence groups, because it is not easy to remember. For example, in C++ are 10 or more precedence groups of binary operators. I don't remember them all, and then I rather use (). What is most annoying - some operators in C are placed not logically. For example, == has higher precedence than &. Anyway, now I think in QM * should have higher precedence than +, because we know it from mathematics. But now already cannot change.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)