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

💡use macros in JavaScript (...) #35

Open
brodycj opened this issue Jun 11, 2021 · 0 comments
Open

💡use macros in JavaScript (...) #35

brodycj opened this issue Jun 11, 2021 · 0 comments

Comments

@brodycj
Copy link
Owner

brodycj commented Jun 11, 2021

Coming from this PR: apache/cordova-lib#871

I noticed a case of code that was expanded when migrating from underscore to more modern JavaScript, suspect this would happen in other places.

Adding more small utility functions, and publishing some on npm for reuse would be one solution. I think this would add non-zero overhead with most if not all JavaScript interpreters.

I think using macros would further improve this situation. I found some interesting resources:

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

1 participant