<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 19, 2016, at 12:21 PM, Rob Mayoff via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 19, 2016 at 10:47 AM, plx via swift-evolution <span dir="ltr" class=""><<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><div class="">In any case, I’d specifically hate to lose these:<br class=""><br class="">- approximate equality: ≈</div><div class="">- set operations: ∩, ∪ <br class="">- set relations: ⊂, ⊃, ⊄, ⊅, ⊆, ⊇, ⊈, ⊉, ⊊, ⊋<br class="">- set membership: ∌, ∋, ∈, ∉<br class="">- logical operators: ¬, ∧, ∨<br class=""></div></div></div></blockquote><div class=""><br class=""></div><div class="">I'd add ≤ ≥ ≠ to that set. </div></div></div></div></div></blockquote><br class=""></div><div>I have production code that uses ± and ≈.</div><div><br class=""></div><div>As with all operator overloads, there is room for abuse — but I’ve been using these operators to mean what it looks like they should mean, and am very pleased with the readability benefits.</div><div><br class=""></div><div>At the very least, Swift ought to support operators using symbols from the Unicode blocks called “Mathematical Operators” and “Supplemental Mathematical Operators.”</div><div><a href="https://en.wikipedia.org/wiki/Mathematical_operators_and_symbols_in_Unicode" class="">https://en.wikipedia.org/wiki/Mathematical_operators_and_symbols_in_Unicode</a></div><div><br class=""></div><div>It’s right there in the name!™</div><div><br class=""></div><div>Cheers, P</div><div><br class=""></div><div><br class=""></div><br class=""></body></html>