top | item 39227422

(no title)

prabhu-yu | 2 years ago

pre-fix is the finest notation for many reasons. So, Intel syntax makes more sense than ATT syntax.

Even C functions are pre-fix. [function_name arg1, arg2 ...] If schools were teaching pre-fix, we would be in better position to appreciate Intel syntax.

Higher maths uses pre-fix, for example: y=f(x) unfortenately, above line is not pure prefix... = y f(x) would be pure pre-fix.

discuss

order

_a_a_a_|2 years ago

  x++
is a postfix kind-of function

  a ? b : c
is ternary infix

Edit: arguably

  /* comment! */
is a function that takes an unquoted string. It's a no-op function so the compiler removes it at compile time (giggle)