-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
defclass static methods and fields #492
Comments
Agreed |
Is there any prior art of this in shadow-cljs? the defclass syntax stuff in squint is mostly borrowed ffrom shadow. |
No, as he mentioned in that linked Clojureverse thread there weren't standards about it at the time. There is also issues in the Closure compiler for static and private class extensions. So this is probably the reason he never extended the functionality This is actually one of the big reasons I am using squint. Using shadow with the Google Closure Compiler has issues with a lot of modern libraries that are starting to use these features and it doesn't look like they will be resolved soon. |
Perhaps just:
would be ok-ish? |
Yeah I think that would be ok |
It would be great if
defclass
could support static methods and fields as it's widely available now.At the moment as a workaround I am doing the following as mentioned here (https://clojureverse.org/t/modern-js-with-cljs-class-and-template-literals/7450/6):
The text was updated successfully, but these errors were encountered: