2 ms·
TS may compile down to JS, but that does not make it the same language. TS done the proper idiomatic TS way is just very different from JS done the proper funct
by orange8 7y ago
TS may compile down to JS, but that does not make it the same language. TS done the proper idiomatic TS way is just very different from JS done the proper functional + dynamic way. How you structure your code using a dynamic, functional language should be very different from how you structure your code in a static, object oriented language. If your code structure looks more or less just the same between the two, then you are doing one of them wrong.
> you have to remember that its type system is optional
Doesn't opting out of the type system defeat the purpose of using TYPE-script in the first place?
- CapsAdmin 7y ago> TS done the proper idiomatic TS way is just very different from JS done the proper functional + dynamic way. Where do you get the idea that Typescript code should be structured like a static object oriented language? Is it because it's a Microsoft product? Letting Typescript try and figure out the types while coding in a "dynamic and functional way" is what works best for me. Is this wrong?
- orange8 7y agohttps://github.com/gcanti/fp-ts https://github.com/gcanti/fp-ts