Sheldan@programming.dev to Programming@programming.dev · 2 months agonew Date("wtf")jsdate.wtfexternal-linkmessage-square47fedilinkarrow-up1212arrow-down13cross-posted to: programmer_humor@programming.dev
arrow-up1209arrow-down1external-linknew Date("wtf")jsdate.wtfSheldan@programming.dev to Programming@programming.dev · 2 months agomessage-square47fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up3·2 months agoGoogle tried to do that with Dart, and failed. In fairness Dart 1 was much worse than Dart 2… So maybe that was a good thing because there’s no way they’d have been able to improve Dart as much as they have if it was part of the web. For dates there finally is something better anyway: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal
Google tried to do that with Dart, and failed. In fairness Dart 1 was much worse than Dart 2… So maybe that was a good thing because there’s no way they’d have been able to improve Dart as much as they have if it was part of the web.
For dates there finally is something better anyway: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal