Sheldan@programming.dev to Programming@programming.dev · 23 hours agonew Date("wtf")jsdate.wtfexternal-linkmessage-square40fedilinkarrow-up1178arrow-down13cross-posted to: [email protected][email protected]
arrow-up1175arrow-down1external-linknew Date("wtf")jsdate.wtfSheldan@programming.dev to Programming@programming.dev · 23 hours agomessage-square40fedilinkcross-posted to: [email protected][email protected]
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up3·12 hours 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