3 ms·
I wish that Javascript was a proper language that included a Date type that was actually useful, and came with batteries included (like Python for example) so y
by skeletal88 4y ago
I wish that Javascript was a proper language that included a Date type that was actually useful, and came with batteries included (like Python for example) so you could do something useful with it without having to find the latest popular library to do something with it.
I also wish that there were other languages running on the browser. Today JS is only popular because it has no competition.
- s1k3s 4y agoI'm curious, what features do you find useful in Python (to call it "batteries included"), that you can't find in JS?
- duncan-donuts 4y agoBasically every language has been competing with JavaScript for at least a decade. Maybe even two decades. Tons of languages target the JS runtime, there have been countless languages that are syntactic sugar over JS, and dozens if not hundreds of attempts to build a browser dev experience that was better than JS. The only continuity is that JS is still around and well. And this is all just recent stuff. What about the attempts for other languages supported in the browser from 20+ years ago? People have been competing against JS for as long as JS has existed. The reality is JS is really useful
- frosted-flakes 4y agoJavaScript will soon have Temporal as a Date replacement. https://tc39.es/proposal-temporal/docs/ https://tc39.es/proposal-temporal/docs/
- windock 4y agoAnd until then, I am happy to use JSJoda, which is very similar to both that proposal, and java.time https://js-joda.github.io/js-joda/ https://js-joda.github.io/js-joda/