Sheldan@programming.dev to Programming@programming.dev · 3 days agonew Date("wtf")jsdate.wtfexternal-linkmessage-square32fedilinkarrow-up1181arrow-down13
arrow-up1178arrow-down1external-linknew Date("wtf")jsdate.wtfSheldan@programming.dev to Programming@programming.dev · 3 days agomessage-square32fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up4·3 days 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