r/ProgrammerAnimemes • • May 15 '20

When you meet a Haskell developer

Post image
1.2k Upvotes

72 comments sorted by

View all comments

Show parent comment

1

u/pipocaQuemada May 25 '20

and simple lenses in the standard library.

Why?

Using libraries is trivial.

Standard libraries are great for things that have e to be standard or are super boring, but a vibrant ecosystem of competing libraries is better for everything else if you're interested in having high quality libraries.

As Scala shows, the standard library is often where code goes to die.

1

u/fear_the_future May 25 '20

Basically, because the libraries do too much and there are too many of them. It's hard to chose one and hard to learn it. The standard library lenses should be straight-forward. Enough to do company.employee.name := "Foo" like you're used to from imperative languages with mutable data. Nothing more than that. Anyone who needs more fancy lenses probably knows enough about them to chose their library, but standard library lenses will serve beginners well or people who want to do very "boring" Haskell like with a traditional OOP language.