You're viewing a single thread.
if (error) { continue; }
86 0 ReplyOn Error Resume Next
Visual Basic is a beautiful language
12 0 ReplyOn error goto 0
Was always syntacticly confusing for me.
3 0 Reply
try { operation(); } catch { // nice weather, eh? }
58 1 Replywith contextlib.suppress(BaseException): do_thing()
1 0 Reply☑️ PR Approved
6 0 ReplyStarting with Java 21 (I think), they've introduced ignored variables, so you can now actually do this:
try { operation(); } catch (Exception _) { // nice weather, eh? }
Edit: forgot that this is about JS lel
11 0 ReplySo basically the same as a discard in C#?
5 0 ReplyYeah, Python has it as well. I think the only real use of it is code readability since you declare that this variable will never be used.
1 0 Reply
Same thing right?
1 0 ReplyIf your joking yes, if your not Java and Java Script are seperate things.
1 0 ReplyHis joking?
1 0 ReplyActually made this mistake in front of 20 people the other day. Guy at my job mentioned coding in java and I asked if he was doing web dev 🤦
1 0 ReplyPlenty of java back end web development, so maybe not as embarrassing as you felt?
1 0 ReplyHe said "I've been closing in C# and Java for 2 years" and I asked, in front of everyone, "are you doing web dev?" And he just coldly said no
See this could have been fine if I didn't double down and go "then what are you using java for... OH WAIT"
1 0 Reply
Thanks. I hate it.
3 0 Reply