by sheept · 4mo ago · 0 comments
- Java has long had a modern replacement for Date, while JavaScript's recently standardized Temporal API still isn't supported in Safari.
- Java has switch expressions, while JavaScript, despite its Scheme influence, does not.
- And now Java is getting value objects, while JavaScript's equivalent tuples & records proposal has been withdrawn.[0]
JavaScript was not developed as a fork of Java, but much of its basic syntax still resembles Java, so I think it's fair to compare them.
"std::allocator is to allocation what std::vector is to vexation".
There was another transparency inside:
"std::allocator is to allocation what alligator is to allegation".
You mean the sibling who commented five minutes before you?
https://www.keycdn.com/support/difference-between-java-and-j...
It's absolutely irrelevant to compare these two languages. Calling the former "Javascript" was just a marketing trick.
Playing devil's advocate: back when you still could use Java in the browser, you could use Javascript to script your Java applets.
i think Temporal API added in latest preview version of safari.
https://webkit.org/blog/18182/release-notes-for-safari-techn...
Note Temporal was in the Ecmascript 2026 release back in March.