Shift operators works on the binary representation of a numeric type.
Freya provides both literal and symbolic shift operators:
Operator | Meaning |
---|---|
shl | Shift bits to the left: literal syntax. |
<< | Shift bits to the left: symbolic syntax. |
shr | Shift bits to the right: literal syntax. |
>> | Shift bits to the right: symbolic syntax. |
The Freya Programming Language
Expressions
Logical operations
Unary operators
Type casts
Null coalescing operator
Type declarations