Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitwise operators #7009

Open
soanvig opened this issue Sep 5, 2024 · 4 comments
Open

Bitwise operators #7009

soanvig opened this issue Sep 5, 2024 · 4 comments

Comments

@soanvig
Copy link

soanvig commented Sep 5, 2024

Rescript lacks support for bitwise operators: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_bitwise_operators

I found: #5176 marked as completed

But I don't see anything in the docs or the source code

@mununki
Copy link
Member

mununki commented Sep 5, 2024

Hi,
We have some: https://github.com/rescript-lang/rescript-compiler/blob/master/jscomp/stdlib-406/pervasives.res#L87-L95

@soanvig
Copy link
Author

soanvig commented 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
Copy link
Member

fhammerschmidt commented 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
Copy link
Member

cometkim commented Sep 5, 2024

@cknitt Should we leave it at #6984? I think we'll eventually have to introduce operators with a JS-like syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants