koka-lang / koka

Koka language compiler and interpreter
http://koka-lang.org
Other
3.26k stars 161 forks source link

Bitwise Operators #404

Closed mtoohey31 closed 9 months ago

mtoohey31 commented 9 months ago

Hello! Somewhat related to the question about unsigned integer types in #388, I was wondering if there's any interest in supporting bitwise operators, either in the prelude or in a standard library module. If so, I'd be happy to work on this at some point.

It looks like we'd probably have to use slightly non-standard syntax for some operators. I couldn't get the typical names for <<, >>, and | to work when I implemented them here due to what looks like syntax errors since those symbols are used in type identifiers.

mtoohey31 commented 9 months ago

Closing since I think the response here https://github.com/koka-lang/koka/pull/388#issuecomment-1872443500 answers this.