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
Create aliases for built in functions #363
Comments
We can do that if we know that a function call is idempotent (i.e. has no side effects). In this case, We can maintain our own list of pure functions and/or allow for specifying a whitelist via options. |
Why you say so? You would alias the function before it's executed. so:
The result would be the same. |
Oh, you're right. I was thinking of getters (when |
I mean, if I use multiple times
Math.floor
, it would make sense to assign it to a variable and use the variable.To
The text was updated successfully, but these errors were encountered: