On Tuesday, 1 October 2013 at 09:21:44 UTC, John Colvin wrote:
On Monday, 30 September 2013 at 21:24:28 UTC, linkrope wrote:
But putting quotes around a string value is obviously not enough. What if the string contains a quote? "hell\"o" would become `"hell"o"`!

Would would you want it be become?

Don't understand. Did you mean "Would would you want it be become"?

I think he meant that he *wanted* it to become "hell\"o". I said: "why don't you just print `"%s"`, to which he retorted by saying it would choke on his input of `hell"o`, which would print:
"hell"o"
Which would be wrong.

Reply via email to