News for hackers. Stuff that matters.
Re:Löb and möb: strange loops in Haskell by quchen on Monday January 30, 2023 @11:33AM (#34582147)
My preferred way is `(f . g . h) x`: parentheses have good editor support, are very readable when there aren’t that many.
Re:Löb and möb: strange loops in Haskell by wyager on Monday January 30, 2023 @03:23PM (#34585820)
That's good too, but you still need one $ for a do block.
Re:Löb and möb: strange loops in Haskell by whateveracct on Monday January 30, 2023 @04:25PM (#34586611)
Not with -XBlockArguments you don't :)
Re:Löb and möb: strange loops in Haskell by wyager on Monday January 30, 2023 @06:03PM (#34587924)
I did not know about that! Nice
Re:Löb and möb: strange loops in Haskell by whateveracct on Monday January 30, 2023 @06:12PM (#34588021)
It's actually been around since 8.6.1 but I personally have only started using it recently. There are certain situations where it's much nicer than $

I will always have a nostalgic love of `$ do` though :)