discord: wiredaemon
she / her 🏳️⚧️
But in general I find certain languages go the "well, the signature of the funciton actually just implies some properties on the given types so i'm gonna generate a proof obligation and if something goes wrong i'll lowkey just spit that at you", which is annoying
But in general I find certain languages go the "well, the signature of the funciton actually just implies some properties on the given types so i'm gonna generate a proof obligation and if something goes wrong i'll lowkey just spit that at you", which is annoying
I like the solution and direction he proposes, although most of that is also applicable outside of clojure imho.
I like the solution and direction he proposes, although most of that is also applicable outside of clojure imho.
On the one hand, yeah, that's pretty handy. On the other hand, sounds like a symptom of bad design if that happens to you
On the one hand, yeah, that's pretty handy. On the other hand, sounds like a symptom of bad design if that happens to you
the only thing where i'm just ... completely ¯\_(ツ)_/¯ is
the only thing where i'm just ... completely ¯\_(ツ)_/¯ is
But, i would argue that's bad style anyway in any language. Because you want to make illegal states unrepresentable.
But, i would argue that's bad style anyway in any language. Because you want to make illegal states unrepresentable.
and if you have functions that require a Maybe as a parameter, you don't have to! you can just write (like rich suggests) normal functions and if they need to deal with optionality, you can lift them. fmap is real.
and if you have functions that require a Maybe as a parameter, you don't have to! you can just write (like rich suggests) normal functions and if they need to deal with optionality, you can lift them. fmap is real.
Maybe is blurry because what's conceptually the type of Nothing?
Maybe is blurry because what's conceptually the type of Nothing?