Re: A funny module that shortens one-liners - is it worth global namespace?

[email protected] (Reini Urban)
Newsgroups perl.module-authors
Message-ID <[email protected]>
> On Dec 27, 2016, at 11:20 AM, Konstantin S. Uvarin <[email protected]> wrote:
> 
> Hello everyone,
> 
>   I've come up with idea or a module that shortens (mostly test) one-liners.

That module should be called Stash::Alias, not HAS.

>   E.g. we have something like
> 
>   perl -we 'use My::Very::Long::Module; $x = My::Very::Long::Module->new( foo => 42 ); print $x->foo;'
> 
>   I've come up with an interface to shorten that to just
> 
>   perl -Mnew=x=My::Very::Long::Module,foo,42 -we "print $x->foo;"
> 
>   It works well under strict, too.
> 
>   And it looks like it makes some sense - see this Perlmonks discussion: http://perlmonks.org/?node_id=1178455
> 
>   However, I'm still unsure if the fun is worth putting into global namespace, and module name HAS to be short, otherwise it kills the idea.
> 
>   Maybe there's a way to get people to try it out first without polluting CPAN if it fails?
> 
>   Acme::n? github project w/o CPAN release?..
> 
>   The module itself:
> 
>   https://gist.github.com/dallaylaen/206a649ea54db4c6db93e99a2e9514b0
> 
>   Thank you,
> 
> --
> Konstantin S. Uvarin
> jabber: see <from>
> skype: kuvarin
> http://github.com/dallaylaen
signature.asc (application/pgp-signature, 163 B)
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlhiQpkACgkQmm2SYo/9yULruQCgjTn2493asXjt5hQangtiSQR8
C78An02J9PmdL0V7VQmLjr+fwqtVxDs8
=YLFl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.