Hi Thorsten,

Bjoern Milcke <[EMAIL PROTECTED]> writes:

I am just wondering if the naming is clear enough.

VALIDATE_AND_THROW and ENSURE_AND_THROW are the same, except that the
former throws an IllegalArgumentException whereas the latter throws a
RuntimException. And both validate and ensure. I think when reading
the place where such a macro is used, I wouldn't exactly know what
happens. Or, when wanting to use it I wouldn't probably remember which
was which.

What would you propose instead?

Er, what you cut away:

    ENSURE_ARG_OR_THROW
    ENSURE_OR_THROW
    ENSURE_OR_RETURN

-Bjoern

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to