<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=""><div class="">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.</div><div class=""><br class=""></div><div class="">Here are my reasons for allowing them:</div><div class=""><br class=""></div><div class="">1. easier to read “within” vs “><span style="font-family: Menlo; font-size: 11px;" class="">*</span><“ or “|<span style="font-family: Menlo; font-size: 11px;" class="">*</span>|” </div><div class=""><br class=""></div><div class="">2. potential opportunity to build an educational library to help explain expressions (see below)</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(187, 44, 162);" class="">infix<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span>operator<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> plus { </span>associativity<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> left </span>precedence<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">200</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> }</span></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(187, 44, 162);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><br class=""></span></div><div class=""><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);" class="">public </span><font color="#bb2ca2" face="Menlo" class=""><span style="font-size: 11px;" class="">func</span></font><font face="Menlo" class=""><span style="font-size: 11px;" class=""> plus </span></font><font face="Menlo" class=""><span style="font-size: 11px;" class="">(lhs: </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Int</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">, rhs: </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Int</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">) -> <font color="#703daa" class="">Int</font></span></font><font face="Menlo" class=""><span style="font-size: 11px;" class=""> {</span></font></div><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">return</span> lhs + rhs</div><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">}</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">let</span> totalApples = <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">5</span> <font color="#31595d" class="">plus</font> <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">5</span></div><div class=""><br class=""></div><div class="">3. potential to write more like a sentence (this isn’t as high of a need, but again a good for entry into the language) </div><div class=""><br class=""></div><div class=""><span style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;" class="">postfix</span><span style="font-family: Menlo; font-size: 11px;" class=""> </span><span style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;" class="">operator</span><span style="font-family: Menlo; font-size: 11px;" class=""> oz {</span><span style="font-family: Menlo; font-size: 11px;" class=""> }</span></div><div class=""><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(187, 44, 162);" class="">postfix<span style="color: rgb(0, 0, 0);" class=""> </span>operator<span style="color: rgb(0, 0, 0);" class=""> cup {</span><span style="color: rgb(0, 0, 0);" class=""> }</span></div></div><span style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;" class="">postfix</span><span style="font-family: Menlo; font-size: 11px;" class=""> </span><span style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;" class="">operator</span><span style="font-family: Menlo; font-size: 11px;" class=""> gal {</span><span style="font-family: Menlo; font-size: 11px;" class=""> }</span></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font><div class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);" class="">public </span><font face="Menlo" class=""><font color="#bb2ca2" class=""><span style="font-size: 11px;" class="">func</span></font><span style="font-size: 11px;" class=""> oz </span></font><font face="Menlo" class=""><span style="font-size: 11px;" class="">(</span></font><span class="kt" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(170, 51, 145); font-family: Menlo, monospace; text-indent: -32px;">inout</span><span style="font-family: Menlo, monospace; text-indent: -32px; background-color: rgb(249, 249, 249);" class=""> </span><span class="nl" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; font-family: Menlo, monospace; text-indent: -32px;">_ </span><font face="Menlo" class=""><span style="font-size: 11px;" class="">lhs: </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">) -> </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span><span style="font-size: 11px; font-family: Menlo;" class=""> {</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="color: rgb(187, 44, 162);" class="">return</span> lhs</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">}</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);" class="">public </span><font face="Menlo" class=""><font color="#bb2ca2" class=""><span style="font-size: 11px;" class="">func</span></font><span style="font-size: 11px;" class=""> cup </span></font><font face="Menlo" class=""><span style="font-size: 11px;" class="">(</span></font><span class="kt" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(170, 51, 145); font-family: Menlo, monospace; text-indent: -32px;">inout</span><span style="font-family: Menlo, monospace; text-indent: -32px; background-color: rgb(249, 249, 249);" class=""> </span><span class="nl" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; font-family: Menlo, monospace; text-indent: -32px;">_ </span><font face="Menlo" class=""><span style="font-size: 11px;" class="">lhs: </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">) -> </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span><span style="font-size: 11px; font-family: Menlo;" class=""> {</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="color: rgb(187, 44, 162);" class="">return</span> lhs *= 8.0 </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">}</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="font-family: Helvetica; font-size: 12px; margin: 0px; line-height: normal;" class=""><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);" class="">public </span><font face="Menlo" class=""><font color="#bb2ca2" class=""><span style="font-size: 11px;" class="">func</span></font><span style="font-size: 11px;" class=""> gal </span></font><font face="Menlo" class=""><span style="font-size: 11px;" class="">(</span></font><span class="kt" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(170, 51, 145); font-family: Menlo, monospace; text-indent: -32px;">inout</span><span style="font-family: Menlo, monospace; text-indent: -32px; background-color: rgb(249, 249, 249);" class=""> </span><span class="nl" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; font-family: Menlo, monospace; text-indent: -32px;">_ </span><font face="Menlo" class=""><span style="font-size: 11px;" class="">lhs: </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">) -> </span></font><span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span><span style="font-size: 11px; font-family: Menlo;" class=""> {</span></div><div style="margin: 0px; line-height: normal; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></div><div style="margin: 0px; line-height: normal;" class=""> <span style="color: rgb(187, 44, 162);" class="">return</span> lhs *= 128.0</div><div style="margin: 0px; line-height: normal; min-height: 13px;" class=""> <br class="webkit-block-placeholder"></div><div style="margin: 0px; line-height: normal;" class="">}</div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="color: rgb(187, 44, 162);" class="">let</span> totalLiquidInOunces = <span style="color: rgb(39, 42, 216);" class="">5oz</span><font color="#31595d" class=""> plus</font> <font color="#272ad8" class="">2</font><span style="color: rgb(49, 89, 93);" class="">cup</span><font color="#272ad8" class=""> </font><span style="color: rgb(49, 89, 93);" class="">plus </span><font color="#272ad8" class="">1</font><font color="#31595d" class="">gal</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I spent awhile looking to make sure this hasn’t been proposed before. I apologize if it is a repeat.</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">
<br class="Apple-interchange-newline"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><font color="#8d8d8d" class=""><span class="Apple-converted-space"> </span>Nerd . Designer . Developer</font></span><font color="#464646" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Jo Albright</span></font><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
</div>
<br class=""></body></html>