Hacker News new | ask | show | jobs
by rossipedia 1620 days ago
You absolutely can. The issue isn't _using_ the optional chaining operator, the issue is that it wasn't compiled down to something that older platforms can understand. Developer quality of life doesn't have to conflict with what's supported on older platforms.
2 comments

And what do you do when the only way to support a new feature on a legacy system necessarily introduces a security risk? Special case it?
That's a hard problem to solve, and I don't think there are any easy answers. It depends on many factors. What kind of business, what the risk/threat model is, cost/benefit analysis, all that kind of stuff.
Sounds like a good solution to the posted problem. But the device user should be allowed to upgrade their browser and OS too.
Sometimes users use older browser because of ignorance, they don't know how to upgrade, or because they don't want to.