News for hackers. Stuff that matters.
Re:Safe Assignment by brundolf on Saturday September 14, 2024 @01:54AM (#41537759)
This would make certain things more convenient, but wouldn't be very versatile and would feel terrible in terms of overall language semantics

Try expressions (mentioned in other comments) seem significantly better, but still feel like they're trying to tack on something that fits awkwardly into the original language design (though that's kind of the history of JavaScript)

Anyway, I'd use those all the time if they landed

There are no comments on this comment yet.