apparently there is a really long thread on github about how javascript promises should be monads and half the people seemed to be arguing that javascript promises weren’t monads and the other half were arguing that they were a kind of monad they just couldn’t be ergonomically handled like other monads and somewhere buried in this discourse it seemed like the actual complaint had nothing to do with monads at all but of the javascript concept of a “thenable”

Follow

i could not for the life of me understand why any of these people cared about any of this stuff

· · Web · 1 · 0 · 0

so then i wrote some code (not in the thread on github) like

const sick = (yes, YES) => "ha"
Array.prototype.fill.call(sick)
Array.prototype.map.call(sick, sick).concat(sick())

to demonstrate that javascript really does not care about what you think is good or right

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.