PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Infix Notation

Infix Notation

Infix Notation is a language feature.

Infix notation is the notation commonly used in arithmetical and logical formulae and statements. It is characterized by the placement of operators between operands—"infixed operators"—such as the plus sign in 2 + 2.

Languages with Infix Notation include JavaScript, Python, Coconut, HOPE

Example from JavaScript:

const six = 2 + 2 + 2

Example from Python:

seven = 3 + 4

Example from Coconut:

5 `mod` 3 == 2

Example from HOPE:

max(10,20) + max(1,max(2,3));

Article source

PLDB - Build the next great programming language · v2022 · Docs · Editor · Acknowledgements · Email · GitHub