But still, I hardly write all the code I use myself.
And then again, with the current situation I still have to take into account the 2 options when handling an error, _every_ time I handle an error. I still think this causes more overhead than necessary. For instance if I just want to display the error message and nothing else.
Of course, if pike had something like static methods, I would create one method for handling errors and use that. But FAFAIK this isn't possible.
Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
The two possibilities "Error" and "array" are the only ones which can occur "spontanously". You will never get anything else unless you throw something else yourself. So it's basically a case of "don't do that then". It's up to the application if you want to use strange throw values or not.
__________________________________________________________ Deze e-mail en de inhoud is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n). Indien u niet de geadresseerde bent van deze e-mail verzoeken wij u dit direct door te geven aan de verzender door middel van een reply e-mail en de ontvangen e-mail uit uw systemen te verwijderen. Als u geen geadresseerde bent, is het niet toegestaan om kennis te nemen van de inhoud, deze te kopieren, te verspreiden, bekend te maken aan derden noch anderszins te gebruiken.
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please notify us immediately if you have received it in error by reply e-mail and then delete this message from your system. __________________________________________________________