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

Exponential operator #34

Open
Happypig375 opened this issue Feb 23, 2022 · 3 comments
Open

Exponential operator #34

Happypig375 opened this issue Feb 23, 2022 · 3 comments
Labels
Syntax This issue is about syntax
Milestone

Comments

@Happypig375
Copy link

^
this is what C# misses. Not repeating the "why" here: dotnet/csharplang#2585

@WhiteBlackGoose
Copy link
Member

WhiteBlackGoose commented Feb 23, 2022

It should have a higher priority than *, as opposed to C#'s ^, and be right associative

@WhiteBlackGoose WhiteBlackGoose added the Syntax This issue is about syntax label Feb 23, 2022
@yamin8000
Copy link

Using ^ may look more natural for the exponential operator that's already established as xor operator in many languages, I think ** is more suited for the exponential operator.

@WhiteBlackGoose WhiteBlackGoose added this to the 0.2 milestone Jun 2, 2022
@Binto86
Copy link
Contributor

Binto86 commented Jul 12, 2022

We could use pow keyword, sence we already have mod instead of %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Syntax This issue is about syntax
Projects
None yet
Development

No branches or pull requests

4 participants