develooper Front page | perl.perl5.porters | Postings from July 2021

Re: PSC #031 2021-07-30

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
July 31, 2021 09:27
Subject:
Re: PSC #031 2021-07-30
Message ID:
20210731102728.036f9b90@shy.leonerd.org.uk
On Sat, 31 Jul 2021 14:45:10 +0900
Yuki Kimoto <kimoto.yuki@gmail.com> wrote:

> I think one reason Perl can't do static analysis is that the
> interpretation of the parentheses of a function depends on the
> loading of other modules.
> 
> And another reason is there is a source filter.

The primary reason Perl can't do static analysis is that Perl isn't a
static language. It's a dynamic language ;)

> Is there a realistic way to get the AST with static analysis?

There's nice ways to get ASTs, yes. They will be of limited use for
"static analysis" because - see above - Perl is not a static language.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About