develooper Front page | perl.perl6.language | Postings from June 2005

Mr. Clean vs. Perl 6

Thread Next
Yuval Kogman
June 29, 2005 19:33
Mr. Clean vs. Perl 6
Message ID:
To me Mr. Clean has always been a symbol of facism. It's this big
strong guy who enforces cleanliness using chemicals. How mean is


Perl 6 is all about getting along with others. There is one aspect
of perl 6 that doesn't get along - people who want to write strongly
typed perl 6, and interoperate with loosely typed perl 6.

This is because Perl 6 is not strongly typed in any way, even

I gave Perl 6 to Mr. Clean, and he said that if type inferrence was
formalized, and used always, except that it's usually used for
performance, and with a lexical pragma can be used to enforce types.
I like facist programming when it can help me, so I would like to
see something like his proposal.

	no autocoerce;;
	my $y = 'blah';
	my Int $x = $y; # compile time type error

This scheme is not perfect.. Maybe someone has an idea?

 ()  Yuval Kogman <> 0xEBD27418  perl hacker &
 /\  kung foo master: /me beats up some cheese: neeyah!!!!!!!!!!!!!!!!!

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