in reply to Re: RFC: new.pm - a perl -e use/new shortener (constructor)
in thread RFC: new.pm - a perl -e use/new shortener

Good point, say, DBI->connect(...); behaves much like a constructor. However, this would clutter the interface, making it less funny. And many Very::Long::Modules are in fact parts of a big production system that standardizes constructors. Maybe there is a way though, need to think more...

  • Comment on Re^2: RFC: new.pm - a perl -e use/new shortener (constructor)

Replies are listed 'Best First'.
Re^3: RFC: new.pm - a perl -e use/new shortener (constructor)
by LanX (Saint) on Dec 24, 2016 at 14:32 UTC
    As I already said, in the rare cases one can always fall back to explicit code.

    Just making it clear in documentation that some modules fail should be enough.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!