Talked today about making Rust macro token streams compatible with arbitrary DSLs, and think there's a plausible way forward by using raw strings. A downside is that depending on how it's structured it might feel odd. The upside is that those could be solved with syntactic sugar
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.
-
-
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 threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.