Mark J. Reed wrote:
I don't care for the use of * there, but it would be nice to have some
way to declare the variable to have the type implied by its
initializer, where the complier can tell what that is, so you could
remove the redundancy in this:

my Dog $fido = new Dog();

while still allowing the var declared via

my $fifi = new Dog();

Oo be untyped.
my Dog $fifi .= new(); # works in Rakudo too ;-)


Reply via email to