News for hackers. Stuff that matters.
Re:Simple-twitter: A bare-bones Twitter clone implemented in... by stewbrew on Friday November 22, 2019 @01:12AM (#21603229)
This actually actually looks surprisingly readable to me. What I find really funny though is how they use Haskell as a strict language mostly working around its lazy nature with all those do, let etc. constructs. It really makes you wonder if they wouldn't have preferred a strict version of Haskell to begin with. Which is funny of course, given Haskell's propaganda around laziness & pure functional programming.
Re:Simple-twitter: A bare-bones Twitter clone implemented in... by afraca on Friday November 22, 2019 @03:52AM (#21603960)
These days Haskell proponents aren't as proud anymore on laziness. Simon Peyton Jones has actually admitted it was a mistake for it to be the default : https://news.ycombinator.com/item?id=1924061

Nevertheless, it has its use cases.

Re:Simple-twitter: A bare-bones Twitter clone implemented in... by tome on Friday November 22, 2019 @09:22AM (#21605746)
That's far from the admission of a mistake.
Re:Simple-twitter: A bare-bones Twitter clone implemented in... by lgas on Friday November 22, 2019 @01:27AM (#21603300)
neither "do" nor "let" impact laziness.
Re:Simple-twitter: A bare-bones Twitter clone implemented in... by stewbrew on Friday November 22, 2019 @06:15AM (#21604589)
No they don't but they allow to pretend (make it look like) strict evaluation.