News for hackers. Stuff that matters.
Re:Why I Like Using Maps (and WeakMaps) for Handling DOM Nodes by taeric on Friday May 05, 2023 @08:12PM (#35836674)
I'd say the big downside is that they don't support the general looking accessor that I'd wager way way way too many people will accidentally use. Myself definitely being one of them. Would have been better if they didn't "seem" to work with the wrong syntax, at least. But, alas, here we are.
Re:Why I Like Using Maps (and WeakMaps) for Handling DOM Nodes by kevincox on Friday May 05, 2023 @08:50PM (#35836883)
I'm typically using TypeScript so that is more or less a non-issue. But even then it seems like an easy thing to get used to.
Re:Why I Like Using Maps (and WeakMaps) for Handling DOM Nodes by taeric on Friday May 05, 2023 @09:12PM (#35837001)
Fair. And I didn't say it is a blocker. Just an easy footgun/downside. Is listed on the page linked, even.