in reply to RFC: User subroutine hinting interface for autodie
Actually I think named constants are better. Strict provides a useful diagnostic for you if you mistype any of them, so the module doesn't have to do anything. And if you don't like bitwise or, you can make your method accept a list, like
autodie::hints->set_hints_for( \&foo, LIST_EMPTY_OR_FALSE, SCALAR_UNDEF_ONLY );
|
|---|