in reply to When I use "can"
I have no routine uses for can() in my code. I likewise have no routine uses for AUTOLOAD in my code.
I have never had occasion to use can() in production code. I have used AUTOLOAD in production within the last 6 months. The case where I used AUTOLOAD was one where I did not see the need to support can(), and furthermore was one where many uses of can() that I have seen others use would be inappropriate. (In other words supporting can() would probably be an unwise thing to do.)
In case anyone is interested, it was essentially a version of Class::Null that handles chaining method calls. (In other words any call on a null object returns another null object.)
|
|---|