News for hackers. Stuff that matters.
Re:JavaScript Temporal Is Coming by mrkeen on Thursday January 30, 2025 @10:10AM (#42878465)
> Java replaced this implementation in 1997

If that date's correct, they replaced it with another flawed implementation. The 'good' one came much later: https://jcp.org/en/jsr/detail?id=310

> What are the forces at work here?

I feel like I'm always simultaneously engaged in about 5 HN threads at a time, advocating for some combination of immutability, type-safety, and/or no-nulls. It's basically all I do.

By and large, people simply aren't into it. "Because the world is shared and mutable" is a pretty common rebuttal:

4 hours ago: https://news.ycombinator.com/item?id=42876487

2 days ago: https://news.ycombinator.com/item?id=42850569

Re:JavaScript Temporal Is Coming by papercrane on Thursday January 30, 2025 @10:30AM (#42878651)
1997 would be JDK 1.1, which introduced the java.util.Calendar/GregorianCalendar classes. The Calendar API was an improvement in some use cases over Date, but it's biggest flaw was mutability. The current API is based on JodaTime and is very similar to Temporal.
Re:JavaScript Temporal Is Coming by agos on Friday January 31, 2025 @04:13AM (#42885973)
and yet on threads about Elixir there seems a lot of people who care – rightly so, immutability it's great and Elixir makes the best out of it. Don't give up the good fight!