Because it's sometimes taken as throwing exceptions can be expensive (https://stackoverflow.com/a/104546). This answer is 12 years old, and was written when we didn't have Throwable or as many as exceptions as we'd see in PHP 8.
Also, no offense taken and I am grateful for your constructive comments in this post and previous posts.
View all comments
Show parent comment
4
u/ayeshrajans Sep 09 '20
Because it's sometimes taken as throwing exceptions can be expensive (https://stackoverflow.com/a/104546). This answer is 12 years old, and was written when we didn't have Throwable or as many as exceptions as we'd see in PHP 8.
Also, no offense taken and I am grateful for your constructive comments in this post and previous posts.