I like programming languages, so I was thinking about what I would want in my favorite one.
Here are the basic essentials for a language to have a chance at being my favorite:
Okay! Let’s see how languages do:
Fails on: 2,6,9,10
Nil pointers are annoying but not a dealbreaker. Lack of polymorphism is where it falls apart.
Fails on: 1,2,3,4,8,9,10
Too many to talk about.
Fails on: 2,3,8,9,10,12
Fails on: 2,4,9,10,12
Fails on: 7,9,11
Easily the best so far, but that lack of mutation is a killer. State is so useful sometimes. You’ll notice it’s the only one that passes 10, and the only one that fails 11.
Fails on: 3,10,12
The lack of green threads is unfortunate, and damn is it ugly, but other than that rust is a great contender.
Revisiting this post, I see that OCaml wasn’t mentioned!
Fails on: 7
Damn. I didn’t even know about OCaml!