Hi Christian,

On Fri, Feb 27, 2015 at 5:15 PM, Christian Stoller <stol...@leonex.de>
wrote:

> In this case FALSE is an expected result and it is intended. And as
> I said other languages are going the same way.
>

Other languages are also doing something saner. It's not really an argument
either way.

Just because it makes more sense for you, it does not imply that
> it makes more sense for everybody. In my opinion it makes sense to
> return an "error code" if a function is called with invalid
> arguments.
>

You probably haven't read the examples that I pasted. If you think that it
makes sense to return an error code if the function is called with invalid
arguments, it should be done consistently. The current behavior is just an
absurdly inconsistent, it is really hard to find an argument in favor of
it, other than the argument in favor of backward compatibility.

Damien

Reply via email to