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

Possibly add Double asterisk operator **, for exponentiation, from ECMAScript 2016 (ES7) #3

Closed
jmcwilliams403 opened this issue Sep 27, 2024 · 1 comment

Comments

@jmcwilliams403
Copy link

The source code of Iosevka uses Math.pow in a lot of places. This could potentially clean up this expression wherever it shows up.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation

@be5invis
Copy link
Owner

You can always use define-operator, like

define-operator "**" 150 "right" : syntax-rules
    `(@l ** @r) `[Math.pow @l @r]

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

2 participants