Proposal: Dot as Postfix Function Apply
John Wiegley
johnw at newartisans.com
Wed Nov 4 15:32:39 UTC 2015
>>>>> Jeremy <voldermort at hotmail.com> writes:
> The idea is that instead of
> (title person) ++ " " ++ (firstName person) ++ " " ++ (lastName person)
> we could have
> person.title ++ " " ++ person.firstName ++ " " ++ person.lastName
-1. "." means composition, not application.
Is there a reason you can't use another operator name, as lens did with ^.?
person^.title ++ " " ++ person^.firstName ++ " " ++ person^.lastName
John
More information about the Libraries
mailing list