fdsdsa_7777
Re:Ask HN: What is the most beautiful piece of code you've ever read?
on Sunday October 27, 2019 @11:58PM (#21374125)
Not to mention humor -- there's a reference in SQLite to Golding's Lord of the Flies -- and I'm guessing more.
Re:Ask HN: What is the most beautiful piece of code you've ever read?
on Sunday October 27, 2019 @11:56PM (#21374115)
I won't comment on how quicksort-y this is, but the combination of pattern matching and recursion is bread-and-butter Haskell. A number of seemingly complex algorithms can be implemented in a similar way.
Having said that, it is elegant and clean and -- taken by itself -- does make Haskell very attractive.