in reply to Re^2: bless with => separated args
in thread bless with => separated args
Writing ref $proto || $proto allows the caller of the constructor to create a new object by calling:
Some people (who are seen as "knowledgable") claim that $obj -> new confuses the hell out of them and that hence constructors should not contain ref $proto || $proto.$obj -> new;
I think that's silly. If something confuses you, don't use it. No need to jihad the thing that enables you to get confused.
|
|---|