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.
-
-
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 -
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.