Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Qchmqs5378ythat's not how try catch works, you can't for example
try
{
drop all database tables
}
catch (database is actually live)
{
undrop the bitch ass fucker
} -
snypenet2358yThis would only work if the social situation threw an exception.
Equivalent of try { processRiskyText();}catch {/*swallow */}
The exception would never boil up and you would never know if you left whatever attempted to process you risky text in an inconsistent state or not. That could bite you in the ass later. -
Kamelpaj208yReally have a hard time enjoying programming jokes that don't even work. The call inside the try would obviously be side effecting and you would only be able to deal with the consequences of your social mistakes :)
-
baskoros6968ytry {
riskyText();
} catch (InnapropriateTextError e {
dealWithDamage(65535);
}
That's how you handle bad decisions.
We should totally be able to use try/ catch irl, especially in social situations
try{
riskyText();
} catch (InappropriateTextError e) {
abort();
}
undefined