Zangoose@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agothe myth of type safetylemmy.worldimagemessage-square11fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imagethe myth of type safetylemmy.worldZangoose@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square11fedilink
minus-squareKnusper@feddit.delinkfedilinkarrow-up0·1 year agoI imagine what they mean is e.g. that TypeScript can tell you something is a Date, but it doesn’t attempt to fix some of the confusing, quirky behaviour with that: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_years So, yes, it’s generally better than JS, but it doesn’t actually make it good/attractive, if you’re used to the sanity of backend languages. It very much feels like lipstick on a pig.
I imagine what they mean is e.g. that TypeScript can tell you something is a
Date
, but it doesn’t attempt to fix some of the confusing, quirky behaviour with that: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#interpretation_of_two-digit_yearsSo, yes, it’s generally better than JS, but it doesn’t actually make it good/attractive, if you’re used to the sanity of backend languages. It very much feels like lipstick on a pig.