Kipper icon indicating copy to clipboard operation
Kipper copied to clipboard

[Feature] Implement bitwise operators `<<`, `>>`, `>>>`, `~`, `^`, `|` and `&`

Open Luna-Klatzer opened this issue 1 year ago • 0 comments

Is there an existing proposal for this?

  • [X] I have searched the existing issues

This feature does not exist in the latest version

  • [X] I am using the latest version

Proposal

Implement the following bitwise operators in the Kipper language:

  • Zero Fill Left Bit-Shift <<
  • Signed Right Bit-Shift >>
  • Zero Fill Bit-Shift >>>
  • Bitwise NOT ~
  • Bitwise XOR ^
  • Bitwise OR |
  • Bitwise AND &

Exact behaviour / changes you want

  • [ ] Implement all given bitwise operators in the Kipper language.
  • [ ] Implement type-checking for the operations.

Luna-Klatzer avatar Jul 24 '23 12:07 Luna-Klatzer