Suggestions to triple quoted strings proposal

Peter Hall peterjoel at gmail.com
Tue Dec 12 14:06:36 PST 2006


Another quick comment. With the addition of E4X, you can use
triple-nested multiline strings with this slightly mucky workaround:

		var q:String = <>
		"Som'e' "
		multiline text
		</>.toXMLString();

In the AS3 implementation, this is equivalent to:

var q:String = "\"Som'e' \"\n\t\t'mult'iline text";


Which is interesting for comparison, as it ignores all leading but not
subsequent white.

Peter



More information about the Es4-discuss mailing list