Flipped function application

Jon Fairbairn jon.fairbairn
Thu Oct 10 08:45:05 UTC 2013

Niklas Haas <haskell at nand.wakku.to> writes:

> On Wed, 9 Oct 2013 11:51:39 -0700 (PDT), Wvv <vitea3v at rambler.ru> wrote:
>> It's looking very strange, that such easy function as flipped function
>> application is still absent at the base.
> I'm not convinced the stylistic differences to ($) are really worth
> adding it as a distinct combinator, at least for general-purpose code.


> It works nicely for lens because it lets you mimic the appearance of
> record update syntax, but it might not be the best idea to introduce it
> as an entirely separate idiom - seeing as it could cause lots of
> unnecessary code complexity and confusion.

Hear, hear.

And mimicking record syntax is mimicking something that?s
backwards anyway. The syntax should have been ?{fld=val} rec?, and
?{fld=val}? should just be a function like any other. 

J?n Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk

More information about the Libraries mailing list