22 points sebg 1 day ago 9 comments
chowells 1 hour ago | parent
RantyDave 1 hour ago | parent
No, it returns KeyError. Or at least it should.
lyorig 55 minutes ago | parent
travisd 39 minutes ago | parent
with match now being available, we even return explicit error objects and the ergonomics are pretty good (reminds me of rust).
lpghatguy 50 minutes ago | parent
This distinction is something that I think is actually handy about JavaScript, and distinguishing between 'null' and 'undefined' is sometimes useful for similar reasons.
pwdisswordfishq 20 minutes ago | parent
woodruffw 15 minutes ago | parent
Waterluvian 13 minutes ago | parent
I bet this would be a good use of vibe coding. Experiment with what-ifs. I can imagine being able to “show not tell” and reduce the signal-to-noise of comment opinions.