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.
-
-
I want this! With autocomplete! (but this screenshot specifically makes me nervous as it needs to convert `bg-white` to a valid Rust identifier to be ergonomic?)
-
Haha, yeah I'm not sure what the limits of macros are. I think there's value to be had in keeping inline DSLs as close to the original syntax as possible, which in this case I guess would include allowing dashes. Is that a reasonable thought?
- 2 more replies
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.