You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some languages like Swift add a new escape character (\() that marks the beginning of interpolation in interpolated strings.
I believe this makes more sense than $ as it is not inventing new syntax given the already existing language rules. This however means the short form for identifiers ($foo) won't work anymore.
example:
i"\(x) can be written as \(scientific)\(x) or \(fixed(20, 10))\(x)."
The text was updated successfully, but these errors were encountered:
WebFreak001
changed the title
use \() for escapes instead of $
use \() for escapes instead of $()
May 27, 2021
Some languages like Swift add a new escape character (
\(
) that marks the beginning of interpolation in interpolated strings.I believe this makes more sense than
$
as it is not inventing new syntax given the already existing language rules. This however means the short form for identifiers ($foo
) won't work anymore.example:
i"\(x) can be written as \(scientific)\(x) or \(fixed(20, 10))\(x)."
The text was updated successfully, but these errors were encountered: