possible syntax: let x = "world"; let tree = html!(r#"<h1>hello {}</h1>"#, x);
-
-
Show this thread
-
I quite like this because it feels very forward-compatible. Not necessarily the nicest to write, but it feels consistent with the rest of the language. Coming from JS template strings it's also easy to imagine what a syntactic upgrade to this might look like down the line.
Show this thread -
Take: for a language to compete with JS's web (app) story, they must match the convenience of embedding DSLs inline. If a language can also solve the pre-processor complexity JS has, that would make a compelling advantage.
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.