
29 Dec
2013
29 Dec
'13
7:47 a.m.
Tony Morris
(`foo` 3) Scala is very limited when it comes to this point free code.
On 29/12/2013 10:17 PM, "harry"
wrote: Is there any reason not to include Scala-like anonymous arguments in Haskell? For example, I would like to write map (\x -> foo x 3) as map (foo _ 3) The named argument in this and similar cases adds nothing but visual and namespace clutter.
How about a slightly more complex example? map (\x -> foo 4 'f' (bar x) 5 'j') There comes a point where point-free notation becomes unreadable.