-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Literal types #296
Comments
i have code for this lying around somewhere. way too soon afterwards though, code like this began annoying me: import tags._
val x = div()
x.id = "foo"
x.className = "message"
x.textContent = "hello" so that preceived gain was not as big as i imagined. |
If you import I just live with that, although I'm not sure how users would know to import that package. |
Thinking about it, in this case, it would be nice to be able to do: |
that could easily be done with a simple type class |
Wow, the literal types approach is super clean:
I understand why this repo wouldn't want custom These new methods would only be available in 2.13+, but maybe that's good enough? |
I like the idea of literal types too, let's keep this on our radar :) |
I find myself doing this a lot:
It would make sense to have extensions for most of the
dom.raw
package.The text was updated successfully, but these errors were encountered: