Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why use exceptions instead of carped errors?

errors exceptions
0
Posted

Why use exceptions instead of carped errors?

0

Because it is safer, cleaner, and matches the object-oriented idea better. ยง One real (costly) example of why using $@ message strings to trap exceptions is a bad idea is Indigo Star’s perl2exe tool and the aging use base pragma. Indigo Star, for some ignorant reason, inserts “LOOK IN THE HELP FOR HOW TO AVOID THIS” message into the beginning of $@ when a package can’t be found completely oblivious to common cases where more than one package is defined in a single module file.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123