the.com/infix
The operator sits between its operands, like a diplomat who insists on being in every conversation.
means A linguistic or notational element inserted into the middle of a word or expression, rather than stuck on the front or back.
from Built from Latin 'in-' (into) plus 'fixus' (fixed, from figere, to fasten) — the same root that gives us 'fix' and 'prefix.' Where a prefix fastens itself to the front and a suffix tacks onto the end, the infix insists on fastening itself into the middle, wedged in like a nail driven straight through the center of the word rather than at its edges.
- example
- a plus b, not plus a b
- opposite style
- prefix puts operator first, like plus a b
- why it matters
- humans love infix, compilers often convert it away
- parsing cost
- needs precedence rules, unlike prefix or postfix