<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 20, 2014 at 4:14 PM, Ron Adam <span dir="ltr"><<a href="mailto:ron3200@gmail.com" target="_blank">ron3200@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""></div>
def foo(...):<br>
symbol b<br>
<br>
s = 'a' b 'c'<br></blockquote></div><br></div><div class="gmail_extra">Actually makes me think of decorators, which means that you wouldn't even need new tokens or keywords:<br><br></div> from functools import make_operator<br>
<br> bop = make_operator(b)<br> <br> s = 'a' bop 'b'<br> <br> class Ops:<br> @make_operator<br> def cat(left, right):<br> return left + right<br> <br> t = 'a' Ops.cat 'b'<br>
<div class="gmail_extra"><br></div><div class="gmail_extra">It reduces the grit, but also reduces certain kinds of obviousness.<br><br></div><div class="gmail_extra">bwm<br></div></div>