> On Oct 18, 2016, at 11:39 AM, Nevin Brackett-Rozinsky via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> It seems natural to me that currency symbols should be operators. This would 
> allow, for example, prefix and postfix operators that take a number and 
> return a “Currency” instance:
> 
> let inMyPocket = $20
> let lochNess = £3.50
> let twoBits = 25¢
> 
> if (inMyPocket - lochNess) > twoBits { … }
> 
> Of course, the unnamed closure parameter identifiers would conflict with that 
> use of the dollar sign. However, I think Anton has the right idea. We already 
> use the number sign for compiler magic, so it would make sense to call the 
> closure parameters #0, #1, etc. In my view those even read better than what 
> we have now.
> 
> Nevin


+1

- Dave Sweeris
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to