I guess each domain has its own unloved, or even unknown, share of languages, which are great in their own right. For most of what I do, I'd say that Reason is one of them. Reason is mixing the best of OCaml and JavaScript, while providing very modern features. I'd love to use it a lot, however the tooling is very very bad and the community small. It is a fairly unknown and unused language, so I don't expect a lot from it at the moment, and I wonder if it will ever fly - which is a shame. Maybe it will, it's a facebook project after all..........
Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
type schoolPerson = Teacher | Director | Student(string);
let greeting = person =>
switch (person) {
| Teacher => "Hey Professor!"
| Director => "Hello Director."
| Student("Richard") => "Still here Ricky?"
| Student(anyOtherName) => "Hey, " ++ anyOtherName ++ "."
};