News for hackers. Stuff that matters.
Re:Temporal: The 9-Year Journey to Fix Time in JavaScript by Waterluvian on Wednesday March 11, 2026 @01:21PM (#47338426)
Yeah exactly. That's what I've loved about Rust and hated about real-world JS. I end up having to reason about an entire case that might not be real at all: does this function mutate what I'm passing it? Should I eagerly deep copy my object? UGH.
Re:Temporal: The 9-Year Journey to Fix Time in JavaScript by stephbook on Wednesday March 11, 2026 @01:44PM (#47338747)
Just call "Object.freeze()" before "return" in your function.
Re:Temporal: The 9-Year Journey to Fix Time in JavaScript by cdmckay on Wednesday March 11, 2026 @03:21PM (#47339974)
That only goes one level deep so it’s not much of a guarantee