Hacker News new | ask | show | jobs
by johnhattan 3169 days ago
IIRC, you can use either. Whatever quote you used to start the string is the one that will end the string.

var foo:String = "foo"; // foo

var bar:String = 'bar'; // bar

var fooquotebar:String = "foo'bar"; // foo'bar

1 comments

That doesn't cover the interpolation part of it, though.

    var z = "This is just a literal value";

    var q = 'This automatically runs Std.format, letting me include "$z"';