[swift-evolution] [Proposal] Refining Identifier and Operator Symbology

Anton Zhilin antonyzhilin at gmail.com
Tue Oct 25 17:08:01 CDT 2016


Why can't we just remove distinction between operator and identifier
symbols? I'd be fine with the following:

```swift
infix operator map
infix func map(lhs: [Int], rhs: (Int) -> Int) { ... }
[1,2,3] map {$0*2}
```

No explicit imports required, plus we can create nice DSLs. Of course, it's
an additive change, but it's worth considering right now, because it can
remove some headache caused by current distinction.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161026/a5a2e6e0/attachment.html>


More information about the swift-evolution mailing list