Y
Hacker News
new
|
ask
|
show
|
jobs
by
vintermann
1780 days ago
You certainly can do points-free programming in Haskell. It's the first place I ever heard of it.
Ironically, points-free programming in Haskell has a lot of '.' in it.
1 comments
the_af
1780 days ago
Haha, I never understood why the point-free (aka "pointless") form in Haskell actually is the form that requires lots of "."!
link
tome
1779 days ago
"Points" means something like "elements". When you write
\x -> f (g x)
you are defining a function that explicitly specifies how each "point" `x` is to be mapped. When you write
f . g
you don't mention any point. You are abstracting away from the notion of point. That's why it's "point free".
link