Subject: | Syntax for building aliases |
Hi,
it would be nice if Lexical::Alias could be used with the following Syntax:
my $bar = q{};
alias my $foo = $bar;
I think this would improve the readability of an alias.
Another advantage would be an easier switching between alias and none
alias vars.
eg.
my $foo = $bar; # default without an alias
alias my $foo = $bar; # ok, let's switch to an alias
But the most significant advantage (and the true reason for this
wishlist requirement) would be the resulting compatibility to
Data::Alias, which has been recommended by Conway in "Perl Best
Practices", but which - unfortunately - does not work under Win32.
Lexical::Alias does, and with this enhancement, it could replace
Data::Alias completely.
Greetings,
Andreas 'ac0v' Specht