[swift-evolution] Fwd: [Pitch] Single-quotes for Character literals
2th at gmx.de
Mon Dec 21 17:55:53 CST 2015
> I suggest reinstating the C convention of using single-quotes for delimiting Characters.
I rarely use chars, but from a theoretical standpoint, I'm not so happy with the ambiguity as well…
But one suggestion if you want to make a proposal:
Char has a fixed length (well, at least that was the case before unicode ;-), so there is no need for a closing delimiter. Leaving the second ' (or whatever might be used) out would save one out of three keystrokes and no one could try to create characters like
'this isn't allowed here'
More information about the swift-evolution