3 ms·
It's always bugged me that many programming languages instead of using matching opening and closing quotes surround strings in pairs of closing quotes! )I guess
by omaranto 16y ago
It's always bugged me that many programming languages instead of using matching opening and closing quotes surround strings in pairs of closing quotes! )I guess most fonts that programmer's use render these as a sort of neutral vertical quote, so that strings don't look so silly.)
- quag 16y agoAscii (and keyboards) only have a single key for ' and ". They are used as both apostrophes, and quotation marks. Typing in code using proper opening and closing quotation marks would be tedious. Editors could choose to apply some smarts and display strings wrapped in quotes using "curly quotes", but that complicates copy-and-paste and so on. Given the entry situation, the only sane thing to do is use a font that makes both ' and " vertical bars.