Spyke
xmunk
sh.itjust.works

Still not as excellent as On Error Resume Next

Imagine the sheer idiocy genius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line.

VBA is truly the language of savants.

95

PowerShell does that by default, and it's my least favorite feature in my most used language.

$ErrorActionPreference = Stop

At the start of almost every script.

25
lemm.ee

So catching errors and doing nothing? That exists in every language except maybe BASIC?

-1

Very different. This means default ignore all errors and continue to the next line. You’d have to explicitly catch every line in most(all?) other languages.

3
konalt
lemmy.world

I wrap every line of code in a try catch block, even my try catch blocks are in try catch blocks just in case the first accidentally drops it after catching it

31

I came across a stack overflow recently about how to do something in a jasmine unit test. Someone gave a solution of β€œI just changed the test to xit(β€œβ€¦ and now there are no errors!”

8

You reached the end

looks good to me | Spyke