Soft failure example
my $zero = 0; my $value = 127 div $zero; say "Still alive!"; # "Still alive!" say $value.WHAT; # "(Failure)" say $value; # Now exception is thrown
Perl 6 | Parallelism in Perl 6 | #11 |
my $zero = 0; my $value = 127 div $zero; say "Still alive!"; # "Still alive!" say $value.WHAT; # "(Failure)" say $value; # Now exception is thrown
Copyright © 2013 http://www.pmichaud.com/2013/pres/ |