in reply to Perl and Type restriction

If it was designed into the language from the ground up, as it is (at least to some extent) with Perl 6, then it is a reasonable thing to implement.

Trying to retrofit it to Perl 5 would be near impossible.

The best you could hope to do is use something like Moose to define your own classes for all the basic types, and then write all your programs completely in terms of those constructed types eshewing all of Perl's built-in types and libraries. Besides all the work that would entail--are you up for it to get what you want?--you wouldn't like the results.

And what would it leave you? It wouldn't be Perl. So why use Perl to program in a different language very, very slowly?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"