4 ms·
There is a lot to like about F#, but I honestly prefer Typescript. I feel like it really has hit the sweet spot between FP and OOP. And while I do tend to pref
by kingdomcome50 6y ago
There is a lot to like about F#, but I honestly prefer Typescript.
I feel like it really has hit the sweet spot between FP and OOP. And while I do tend to prefer the more terse ML syntax of F#, Typescript is pretty close and, frankly, offers a more ergonomic experience in your editor (F# syntax highlighting in every editor I have used is woefully underwhelming).
Add to the above the structural typing vs nominal and Typescript really does offer an immensely rich and flexible paradigm. The only feature I'd really like to see better support for in Typescript is currying/partial application These can be approximated in TS using it's incredibly powerful type system (dependent types using "extends" combined with inference using "infer"), but newer versions will throw an exception when the compiler sees an infinitely recursive type.