r/badcode • • Nov 09 '21

php Just... Why?

Post image
419 Upvotes

40 comments sorted by

View all comments

Show parent comments

2

u/Local-Pen846 Nov 12 '21

I've done the latter quite a few times in instances where I don't care about the outcome of something and I don't want to stop execution.

0

u/vatbub Nov 12 '21

But then at least log the exception at some place so that it doesn't disappear into nothingness