A cool thing that could be done in Rust is enumerate all valid properties for DOM elements, and front it with and html!() macro (for convenience). Would allow compile-time validation of the markup that's written, which is a level of trust that I haven't seen anywhere else yet.
Ohhh cool! I like how there's strict relationships between elements too! Thanks for the link :D
-
-
Only problem is, if you put this inside a JSX like macro, the error messages are probably going to be awful.

-
I don't have any notable experience with macros, but won't these errors be improved now that Rust 1.30 has been released? https://blog.rust-lang.org/2018/10/25/Rust-1.30.0.html … Or are those error changes unrelated?
- 1 more reply
New conversation -
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.