[swift-evolution] Allowing Characters for use as Custom Operators

Chris Lattner clattner at apple.com
Thu Jan 7 18:24:51 CST 2016

> On Jan 7, 2016, at 1:31 AM, Jo Albright via swift-evolution <swift-evolution at swift.org> wrote:
> As my obsession grows with custom operators. I have come across wanting to use small words or 1-2 alphabetical characters as custom operators. I noticed that “as” and “is” are character based operators and figured it wouldn’t hurt to propose the allowance of character based custom operators.
> Here are my reasons for allowing them:
> 1. easier to read “within” vs “>*<“ or “|*|” 

Check out Replace Logical Operators (&&, ||, etc) with words like "and" and “or":

There is very small win here of “x foo y” over "x.foo(y)”?


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

More information about the swift-evolution mailing list