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

Re: Types in Cor (and Perl)

Thread Previous | Thread Next
David Green
July 14, 2020 01:35
Re: Types in Cor (and Perl)
Message ID:
Is there any reason not to use the existing syntax for types?
   my Foo::Bar $x;

"Existing" because Perl already understands this (any perl5, I think; 
certainly as far back as 5.8).  It doesn't *do* anything, but perl can 
parse it (and will warn if there is no Foo::Bar package).

You can even make it do something with Vincent Pit's Lexical::Types.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About