4 ms·
Well, one simple typographical way to solve this is not to use a quotation character (') when what is meant is an apostrophe character (’).
by elros 11y ago
Well, one simple typographical way to solve this is not to use a quotation character (') when what is meant is an apostrophe character (’).
- vog 11y agoOuch, I'd be afraid that this may become the source of subtle bugs.
- JimmyM 11y agoI thought that (') was the apostrophe character, although it doesn't look like one. (Source: http://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html http://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html) The same source agrees with you elsewhere though, making my distinction pedantic. (http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html) I can't personally imagine this solution would be any less confusing, given that the new preferred apostrophe character according to this source is specifically a right single quote character.
- recmo 11y ago"Don’t say “Hello”" Proper typography solves all. My toy programming language uses “ and ” for string literals. It counts nesting, so you can write “Don’t say “Hello””. There is no escaping. In fact, you can quote any piece of code by simply enclosing it in “ and ”. Code is commented out by turning it into an unused string literal.