Open Boscop opened 6 years ago
Perhaps? But those are so complicated to read that they feel like the antithesis of what this crate aims to accomplish: interpolation that is very simple and natural to read and write. I had a hard time reading any of those examples. I'd prefer:
let nested = s!("{a} x{x+1} y");
let s = s!("a {nested} b");
(note: I'm using syntax that removes the $
)
In JS:
Would this be the Rust equivalent?
or alternatively:
?