prolic on Nostr: Look at it this way: Haskell's do-notation actually looks like procedural code. If ...
Look at it this way: Haskell's do-notation actually looks like procedural code. If you actually write procedural in any language, you have to take care of error handling, exception handling, possibly async tasks, logging, etc. This will inevitably clutter your code and make it less readable. Not so in Haskell. Monads allow you to abstract these things away and do-notation actually looks like procedural (do this, then do this), but without all this other stuff around (aka try-catch f.e.).
Published at
2025-01-14 01:35:45Event JSON
{
"id": "f369a499251120921e23bff8637d8dd9aa4a45e99a333188d48564b7e55c8562",
"pubkey": "3b8c97ae9286f01253c4f88d42d16e858c7c92513abf2f38251aff713514bce6",
"created_at": 1736818545,
"kind": 1,
"tags": [
[
"e",
"2c59c823220813bd5aa5d14292fadc9e729b995157b1ccee3ed576310279612a",
"",
"root"
],
[
"e",
"c7d378cb856eeef06ea3302c9caa6e329b8186b0048fadc9859c340aa840249f",
"",
"reply"
],
[
"p",
"3b8c97ae9286f01253c4f88d42d16e858c7c92513abf2f38251aff713514bce6"
],
[
"p",
"cd29efda9a329df7535cb201452662c3274452b41a2b303ba5c18d0623c89e7c"
]
],
"content": "Look at it this way: Haskell's do-notation actually looks like procedural code. If you actually write procedural in any language, you have to take care of error handling, exception handling, possibly async tasks, logging, etc. This will inevitably clutter your code and make it less readable. Not so in Haskell. Monads allow you to abstract these things away and do-notation actually looks like procedural (do this, then do this), but without all this other stuff around (aka try-catch f.e.).",
"sig": "fab00de6dac98892bbdec414b0ac4a048140bc3dafaf34e6ed8dce3a0b1f31548713edbeaecba86c82b731cc63ee616e765b715a6b41af42bde172de1454681c"
}