Deno, Node and TypeScript
JavaScript is considered decent language for functional programming, particularly because its weak, dynamic typing combined with arrow functions make for succinct code. After using F# more though I've really come to appreciate type-driven development. Strong types and functional programming go so well together, I've essentially completely abandoned regular JavaScript, even in Node and now I run TypeScript on the server with ts-node
.
As May approaches, I'm getting more excited about the 1.0 release of Deno. TypeScript will be a first class citizen - apparently with no need for compilation and no need for running ts-node
on a Node server. I'm looking forward to seeing how the JS ecosystem evolves when TypeScript is elevated to that level. Most of all, I look forward to writing some statically typed functional code 😍.