NHacker Next
login
▲Death to Type Classesjappie.me
29 points by zeepthee 3 days ago | 14 comments
Loading comments...
SkiFire13 3 hours ago [-]
I feel like this article would be much more approachable if it didn't assume readers already know Ocaml and Haskell and their module system
nine_k 2 hours ago [-]
Indeed so, but that would require a few months worth of work from the reader, unfortunately.

(I have a t-shirt with a lambda in a circle, reminiscent of the anarchist emblem, and words "no class, no state". It's definitely possible to explain to a passer-by who never studied FP what it refers to, but not in such a way that the joke remained funny. Possibly the same deal is with the bumper sticker saying "my other car is cdr".)

codebje 2 hours ago [-]
"Humor can be dissected, as a frog can, but the thing dies in the process and the innards are discouraging to any but the pure scientific mind." - E. B. White.
fweimer 2 hours ago [-]
Haskell knowledge doesn't actually help because this isn't using the (very barebones) Haskell module system, but the Backpack extension: https://www.microsoft.com/en-us/research/wp-content/uploads/...
nesarkvechnep 32 minutes ago [-]
Yeah, it’s better to not assume anything and be stuck in the basics forever, right?
4ad 2 hours ago [-]
It would also be a useless article. It's fine to write for an audience, if you're not in the target audience, move on.
Vosporos 51 minutes ago [-]
It's okay not to know things
actionfromafar 2 hours ago [-]
Yeah... meanwhile, in lesser languages, type classes is all we have.
indigoabstract 27 minutes ago [-]
Delightfully weird and niche article.

And I wouldn't be surprised if there were more retired left handed surgeons in their 50s living in rural Switzerland than people who understand what he's talking about.

test6554 3 hours ago [-]
I just picture Charlie from “It’s Always Sunny in Philadelphia” connecting the dots.
b_e_n_t_o_n 60 minutes ago [-]

   if err !== nil {
      return err
   }
semiinfinitely 44 minutes ago [-]
even for someone moderately interested in FP, this one goes above my head and the only take-away I can get from it is "maybe use ocaml instead of haskell"
12_throw_away 1 hours ago [-]
"Functors" "Monads" "Typeclasses" <- concepts dreamed up by the utterly deranged
skrebbel 33 minutes ago [-]
It's okay not to know things