News for hackers. Stuff that matters.
Re:Reimplementing “git clone” in Haskell from the bottom up ... by eru on Sunday December 07, 2014 @09:25PM (#8714595)
Haskell has sortBy and comparing, like this:

    sortBy (comparing salary) employees
The grammar is not as close to English, but close enough to understand.
Re:Reimplementing “git clone” in Haskell from the bottom up ... by pdpi on Monday December 08, 2014 @05:27AM (#8715794)
The canonical example there is actually to use on and infix `` notation:

    sortBy (compare `on` salary) employeers