Bartosz Milewski on Nostr: I noticed the trend in Haskell to use `pure` instead of `return` in monadic code. ...
I noticed the trend in Haskell to use `pure` instead of `return` in monadic code. Should I promote this new style in my writing?
Published at
2024-11-07 17:34:25Event JSON
{
"id": "ab659664225fe477f1fa441ca7747bceafa439c665c34dcd9585a1cda7cbbd2d",
"pubkey": "a60a88374d8e1cf092c7ea93662aa784fb33b3e75be7725017032e6929ebc5d5",
"created_at": 1731000865,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/BartoszMilewski/statuses/113442872711669444",
"activitypub"
]
],
"content": "I noticed the trend in Haskell to use `pure` instead of `return` in monadic code. Should I promote this new style in my writing?",
"sig": "cc4f0c6d52d3a2dc669699550e9d4f0ef57795e96bfa0b944de79226d402f6b80eb06636430f9441a9e6d47b09e7014ff4bd676601f114b031b4f778d3edc6b5"
}