Escape Characters and Poor Design Decisions

To say it once and for all: using ” as the escape character for ‘ within single-quoted strings is a poor decision in language design.

2 responses to “Escape Characters and Poor Design Decisions”

  1. Jason

    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…

  2. John Myles White

    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.