I wish Rust macros had a standardized interpolation syntax. I reckon it would help a lot with syntax highlighting / auto indentation down the line. Also learnability.
-
-
Replying to @yoshuawuyts
Hm, what do you mean by interpolation syntax precisely? And how would a standardized one look like?
1 reply 0 retweets 0 likes
Replying to @killercup
In JS template strings interpolation always happens using ${}. E.g. var dom = html` <body>${myVar}</body> ` Rust is starting to create similar systems using macros, but there's no existing convention on how to interpolate. E.g. {} or {{}} are common, but it varies.
5:08 AM - 20 Nov 2018
0 replies
0 retweets
1 like
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.