4 ms·
> That just raises a different problem: y = bar(generateUUID()) z = bar(generateUUID()) You can't write that in Haskell! Instead you write something
by tome 5y ago
> That just raises a different problem:
y = bar(generateUUID())
z = bar(generateUUID())
You can't write that in Haskell! Instead you write something like.
yuuid <- generateUUID
zuuid <- generateUUID
y = bar yuuid
z = bar zuuid
- treis 5y agoYeah, I'm not denying that these things are solved in Haskell or other FP languages. People build complex applications in those languages so all things must be possible one way or another. My complaint is that the tutorials never wade into these weeds and show how FP makes real world applications easier to build.
- tome 5y ago> the tutorials never wade into these weeds and show how FP makes real world applications easier to build Yes that's true, and it's unfortunate.