Part 3: what everyone knows **************************** I think everyone 'knows' this ordering:
logic: or and not comparison: < > <= >= <> != == arithmetic: add + - mult * / exponent ^ naming: . There's some confusion over distribution of unary - over exponentiation, and it isn't obvious it is right associative. The precedence and assoc of function arrow -> is fixed by ML lower than +, and right associative, whereas the C -> operator if left associative and has higher precedence. C programmers also know: bitwise: | & ~ << >> but I forget xor operator ^ myself :) I've been writting C/C++ for decades and still get confused .. and Ocaml for quite some time and also still don't know all the precedences. There are other needed operator like setwise comparisons, setwise sums and products, vee/wedge for lattices, etc. If we could write TeX we could indicate precedence by spacing and symbol size ... -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language