[Haskell-cafe] why can't you surround (+) in backticks and have
it beinfix?
Brian Hulley
brianh at metamilk.com
Mon Jan 8 15:51:27 EST 2007
tpledger at ihug.co.nz wrote:
> David House wrote:
>>
>> You can fake this:
>>
>> (-!) = ($)
>> (!-) = flip ($)
>>
>> foo -! liftM2 (,) !- bar
>
> Was anyone in that brainstorm thinking of Chung-chieh Shan's
> -: and :-
> (http://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html)
> or was the similarity just a really cool coincidence?
I hope no-one seriously thinks the above syntax is clearer than:
liftM2 (,) foo bar
Brian.
--
Operators: one small step for compilers, one giant leap for obfuscation.
http://www.metamilk.com
More information about the Haskell-Cafe
mailing list