What about Perl "typed lexical" #165
Replies: 1 comment 1 reply
|
Hi @notavaiable42, thanks for starting the discussion. The Perl Navigator doesn't currently support typed-lexicals, but it does support type comments with "isa" like: my $foo = $dt; # $foo isa DateTimeOne issue with typed-lexicals is that they don't work in subroutine signatures or multi-valued assignment like There is some discussion here as well: #151 That said, I like the idea of supporting the |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Dear bscan,
first of all thank you very much for this great work. I stumbled upon perlnavigator a few months ago and could not belief that such a great thing is out there readily available for use. Thank you very much.
After using it for several months now and heavily in the last few weeks in conjunction with Moose, I was wondering whether it was possible to have Smart context-aware autocompletion and navigation for Perl typed-lexicals.
Consider the following:
When I now use the
$carvariable like$car->I will get Smart context-aware autocompletion and navigation from perlnavigator.But when I do the following thing:
And again use the
$carvariable like$car->I will not get Smart context-aware autocompletion and navigation.This makes perfect sense to me because how should perlnavigator tell which type we are using.
So I tried as follows:
And hoped that with the typed-lexical I could give perlnavigator a hint what class we are about to deal with. But sadly no Smart context-aware autocompletion and navigation appeared.
So here is my question: Is this feasible and if so could you do us this favour an implement it. That would be awesome.
Anyways thank you for all your efforts and please keep it up.
Yours Zachary
All reactions