By John Myles White on 11.9.2008
To say it once and for all: using ” as the escape character for ‘ within single-quoted strings is a poor decision in language design.
Posted in Programming | 2 Responses
Ah, yes I can remember the times I’ve stumbled on strings like ‘Foo “some”‘ + ‘bar’ + “‘today”‘. See the mistake ? I’d be surprised if anyone catches it…
I see a mistake in the today part of the concatenation, but you’re definitely right that no normal person would ever catch it without being advised of its existence beforehand.
Copyright © 2018 John Myles White.
Powered by WordPress and Hybrid.