"Peter Bortas @ Pike developers forum" 10353@lyskom.lysator.liu.se wrote:
/.../ and most of the time there shouldn't be any error. (Right?)
There could be applications that throw some errors fairly frequently, so speed can't be ignored. Anyway, with the option to resort to the err->is_my_error variety, the type comparisons can always be avoided when performance is very important.
True.
Throwing errors slowly is a feature. It discourages the use of errors as a signaling mechanism in the normal program flow.
Why a religious stance on this issue? Most of pike seems to be designed to let people use whatever language features they want as they see fit. I think that's a better way to go, rather than trying to push a "right" way of doing things like some other languages do.
Adam