This would probably be a lot of work to generate by hand though. I wonder if there's WebIDL specs for DOM elements available.
-
-
Show this thread
-
Could probably extend this to CSS too. I haven't thought this through yet, but I wonder if there's something to be said for a mapping of CSS classes to Rust structs (instances). Type safety around class usage could have some fun implications. Also could help w/ critical styles.
Show this thread -
By the way, if someone wants to run with this idea and give it a shot, please do! I won't have time to try this out until at least January.
Show this thread -
(This is also very much me thinking about how to bring the convenience of Sheetify to Rust, but merge improve on it using the guarantees Rust's type system provides). I think something should possible! Probably worth learning from Diesel here too, as they've done this for SQL.
Show this thread -
Okay, yeah so this is more or less what I think this would look like syntactically when used. Everything under it would be strongly typed, and exposing methods like `.as_bytes()` for sending it over the wire.pic.twitter.com/Boh4h33hRM
Show this thread
End of conversation
New conversation -
-
-
https://hackage.haskell.org/package/type-of-html … has this already, probably some nice ideas to steal there.
-
Ohhh cool! I like how there's strict relationships between elements too! Thanks for the link :D
- 3 more replies
New conversation -
-
This Tweet is unavailable.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.