
Tech Talk: The Reason For Types with Jared Forsyth on ReasonML and Javascript
CoRecursive: Coding Stories
00:00
Java Script Development
The libraries have done a lot to bring immutability as a norm into professional JavaScript development. So some type is an enumeration. It's like a Java enum, except it can hold data and different kinds of data. And it's so helpful when you're writing a switch statement and you can enumerate over all the different cases. Whereas in JavaScript, switch statements are anemic. They don't even have separate scope between the different branches with switch.
Transcript
Play full episode