Re: [heycam/webidl] Making methods more future-proof (#954)

It's not clear to me what JavaScript should do, beyond making sure that the safer idioms are ergonomic (which I believe they are, with arrow functions and object literals). We could add certain stricter checks to make the unsafe patterns more unlikely, but to preserve compatibility, we could really only do this for new APIs (both creating a discontinuity and leaving the greater part of the problem unsolved). I wonder if type systems can help encourage people to use future-proof patterns @rbuckton.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/954#issuecomment-772493674

Received on Wednesday, 3 February 2021 13:07:34 UTC