Operators
From FizzFuzz
There are quite a few operators in FizzFuzz, many borrowed from other languages and from mathematics. The default function function of the operator will be shown here, and none that only act on specific datatypes.
Order of Operations
Below is the order of operations for all the operators, from first evaluated to last evaluated:
- [] · () · {} · . · :: · .. · ...
- ! · ~ · - · ++ · -- · * · & · $
- **
- * · / · %
- + · -
- & · | · ^
- >> · -> · << · <-
- == · != · <> · > · < · >= · <= · ~>
- &&
- ||
- ^^
- ?:
- , · :
- Assignment Operators
Operators
- +: Addition, Concatenation
- -: Subtraction, Negation, String Subtraction
- *: Multiplication, String Duplication, Pass-By-Reference
- /: Division, String Seperation
- %: Modulus
- $: Pass-By-Value
- **: Exponentation
- []: Array Index, Array Size Accessor, Embedded Expression
- (): Parantheses, Typecasting
- {}: Array Initializer
- ++: Incrementation
- --: Decrementation
- =: Assignment, Array Size Assignment
- !: Logical Not
- &&: Logical And
- ||: Logical Or
- ^^: Logical XOR
- ==: Equal To
- !=, <>: Not Equal To
- >: Greater Than
- <: Less Than
- >=: Greater Than Or Equal To
- <=: Less Than Or Equal To
- ~>: In Operator
- ?:: Conditional Operator
- ~: Bitwise Not
- &: Bitwise And, Pass-By-Address
- |: Bitwise Or
- ^: Bitwise XOR
- <<: Rotate No Carry Left, Array Rotation Left
- >>: Rotate No Carry Right, Array Rotation Right
- <-: Rotate Through Carry Left, Array Contraction
- ->: Rotate Through Carry Right, Array Expansion
- .: Member
- ::: Namespace Member
- :: Delimiter
- ..: Range Operator
- ...: Repetition Operator
- ,: Delimiter, Mutli-Assignment

