-
Notifications
You must be signed in to change notification settings - Fork 20
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 call-site to do some hacky/awesome simplifications? #101
Comments
IMHO, that's abusing the language features 😆 |
Oh, absolutely! That's why it's so enticing, haha! Maybe not this particular use-case, but it might be useful for grabbing things like |
Oh I see, you were referring to their implementation. I think it's brilliant :P. |
Might break in webpack, though. |
yeah, rewriting the global error class static method then rewriting it back, reminds me of DOJO/mootools era, long time ago 😄 |
Could we use https://www.npmjs.com/package/callsite to do some tricky stuff like auto-generating CDK construct IDs from the assign variable name?
Could even store the current "scope" globally to remove the boilerplate entirely:
The text was updated successfully, but these errors were encountered: