[swift-evolution] Allow ' in variable/constant names?
george.moschovitis at icloud.com
Thu Jan 12 08:35:04 CST 2017
> So yeah, solution is to make characters easier to type, not modify the language.
> If like me you don't have such a keyboard, you can always use ctrl+⌘+<space> and type ‘PRIME’ to find it, then pick it from recently used/favourites.
> Regarding the other point, I agree that character literals would be handy, but again I’m not sure if apostrophe is the right character to indicate it. Although it is familiar, perhaps LEFT SINGLE QUOTATION MARK and RIGHT SINGLE QUOTATION MARK would be better, they can be relatively easily typed with ⎇+] and ⎇+⇧+] respectively. Xcode could also convert two apostrophes into ‘’ for you and your fingers would quickly learn to type ' ' ← ‹char›.
I think the single (ASCII) quote is standard enough for use as a character delimiter.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution