On Thu, 2004-06-24 at 21:45, Brent 'Dax' Royal-Gordon wrote: > Perhaps not as happy as you think: > > my $foo = '0'; > my String $bar = '0'; > if $foo { say 'foo true' } > if $bar { say 'bar true' } > > Would print 'bar true', but not 'foo true'.
Frankly, I love it. Since I plan on using explicit typing a lot, I can just assume '0' is true in my code. However, machine-converted Perl5 code will also work reliably, easing the transition from 5 to 6. The only catch that I see is that it's pretty weird to change your program's behavior simply by changing an untyped variable to a String... That might have to go in a FAQ. :) - Scott