Proposal: Add (&) to Data.Function
mgsloan at gmail.com
Tue Nov 20 19:27:51 CET 2012
And the results of the IRC discussion on lens:
I do think that this looks nicer, for whatever reason. While the mnemonic
of "mod"ulus can suggest modify once you know that, (&) somewhat naturally
suggests "and then" ... "and then". I still prefer (#) for overall
consistency and history, but other than its conjunction connotations, (&)
is mnemonically better.
It'll be funny to mix diagrams and lens code - (&) is used for sticking
coordinates together for points / vectors - while (#) would stand in for
On Tue, Nov 20, 2012 at 10:17 AM, Michael Sloan <mgsloan at gmail.com> wrote:
> (#) is also used by the diagrams library, mainly for using functions as if
> they were "attributes".
> In the context of lens, this is discussed a bit here:
> On Tue, Nov 20, 2012 at 9:31 AM, Stephen Tetley <stephen.tetley at gmail.com>wrote:
>> "Haskell" called this operator (#) about 12 years ago - see Peter
>> Thiemann's WASH and Eric Meijer and colleagues MS Agent scripting.
>> I'd much prefer (#) if it didn't interfere with GHC's magic hash, I
>> suspect the above authors were using Hugs...
>> On 20 November 2012 17:19, Dan Burton <danburton.email at gmail.com> wrote:
>> > Just to bring up some prior art, from what I've heard, F# calls this |>.
>> Libraries mailing list
>> Libraries at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries