Get the latest tech news

Safe Assignment


Alan Johnson's Personal Site

There was a good bit of buzz today about the new proposal for a safe assignment operator (?=) in JavaScript. One idea I initially had was to write a completely async version, maybe called asyncTryCatch, but where’s the challenge in that. I pretty regularly have cases where I need to try/catch but feel like the explicit try/catch block takes up a ton of space and is annoying for scoping assignments.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Safe Assignment

Safe Assignment