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

Haha, I never understood why the point-free (aka "pointless") form in Haskell actually is the form that requires lots of "."!
"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".