Am Wed, 17 Jul 2013 22:50:09 -0400
schrieb Jerry <[email protected]>:

> Hi folks,
> 
> I was looking at writing a hash-like class with a specific operator and
> disliking the syntax of:
> 
> T opBinary(string op)(U key) if (op == "in") {}
> 
> When it occurred to me that it could be simply tightened up as:
> 
> T opBinary(string op : "in")(U key) {}
> 
> Any thoughts?  Is this bad style?
> 
> Thanks
> Jerry

I write it like that, too. It's more readable with the "in"
closer to the method name.

-- 
Marco

Reply via email to