Rescript lacks support for bitwise operators: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_bitwise_operators I found: https://github.com/rescript-lang/rescript-compiler/issues/5176 marked as completed But I don't see anything in the docs or the source code
Activity
mununki commentedon Sep 5, 2024
Hi,
We have some: https://github.com/rescript-lang/rescript-compiler/blob/master/jscomp/stdlib-406/pervasives.res#L87-L95
soanvig commentedon Sep 5, 2024
Thank you very much.
There I think pervasives is not documented anywhere on the rescript page, am I right? Can't find them in API ref.
fhammerschmidt commentedon Sep 5, 2024
That's deliberate, Pervasives will be removed so the bitwise functions from there should probably just go to https://rescript-lang.org/docs/manual/latest/api/core/int
cometkim commentedon Sep 5, 2024
@cknitt Should we leave it at #6984? I think we'll eventually have to introduce operators with a JS-like syntax.
cometkim commentedon Mar 23, 2025
#7171 and #7172 will be done in v12