by veidr · 9y ago · 0 comments
Swift's string interpolation doesn't catch my eye like, say, Ruby's does: `#{my_var}`. It's very easy to gloss over `\(something_like_this)`. I suspect they were going for a more "elegant" syntax at the cost of pragmatism.
Yeah, like the symmetry of `do` / `end`! /s
"blah blah \(f(g(42)))"
Seems fine to me.Why not? It's not like there's any conflict. You can use parens inside the interpolated expression just fine.
Hyperbole much?