[swift-evolution] [Review] SE-0144: Allow Single Dollar Sign as a Valid Identifier

Jonathan S. Shapiro jonathan.s.shapiro at gmail.com
Fri Oct 21 21:52:22 CDT 2016

On Wed, Oct 19, 2016 at 1:02 PM, Kevin Ballard via swift-evolution <
swift-evolution at swift.org> wrote:

> I'm actually vaguely surprised that the other currency symbols are
> considered valid identifiers, since they're not alphanumeric symbols. As
> for turning them into operators, it's a cute idea, but it doesn't work for
> any symbol that's used by multiple countries. For example, would $3.50 be
> USD, AUD, CAD, or any of the other dozens of countries that use dollars?

This is true, but not compelling. While using USD, AUD, CAD, and friends is
better practice for a truly internationalized code base, it does not follow
that use of $ for a more local-consumption code base should be rejected out
of hand.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161021/35c744c0/attachment.html>

More information about the swift-evolution mailing list