3 ms·
ReasonML looks interesting but how do you go about debugging it even with sourcemaps? Its types don't even have the same paradigms. The article was using straw
by goldenkey 4y ago
ReasonML looks interesting but how do you go about debugging it even with sourcemaps? Its types don't even have the same paradigms.
The article was using strawman comparisons in some places. The getPhone example should have used optional chaining:
const getPhone = (form: Form) : number | undefined => form?.user?.phone
- davidatbu 4y ago> debugging. Another point in TS's favor. > strawman's comparisons in some places Not sure, but this might be because the article was written before/around when the relevant features were merged into TS. For example, optional chaining was added to TS a month after the blog was published[0]. I do thank you for pointing that out though, as it's totally relevant. [0] https://github.com/microsoft/TypeScript/pull/33294 https://github.com/microsoft/TypeScript/pull/33294