3 ms·
> it expands your mind as a programmer That’s exactly what got me interested in FP. But after doing some serious work in FP, I must say typed FP really does he
by girishso 7y ago
> it expands your mind as a programmer
That’s exactly what got me interested in FP. But after doing some serious work in FP, I must say typed FP really does help keep my mind more saner, knowing nothing’s broken in the product, with my changes here and there.
Of course, TDD helps in OO/imperative languages, but with typed FP you get that almost for free.
- valand 7y agoThe last part really captures how TypeScript saved me from headaches. :D
- girishso 7y agoWhen I said typed FP, I meant languages with ADTs.. Elm/Haskell etc., not Typescript! :)
- valand 7y agoI thought we were talking about FP paradigm, not the language, and the Typed data concept which includes compile time type validations, type inference. And also I'm pretty sure TypeScript has union, intersections, tuples, record which are pretty much ADTs.
- girishso 7y agoYou're right, my bad. I didn't know TypeScript had ADTs. Should probably take a serious look at TypeScript.