Re: Rationale for $!

2016-01-28 Thread Todd C. Olson
Slight change in focus of question ...

> On We 2016-01-27, at 09:15, Felipe Gasper  wrote:
> ---
> use v6;
> 
> my $x = 10;
> my $y = 0;
> 
> my $z = $x / $y;
> 
> my $exception;
> {
>{
>say $z;
>CATCH {
>default {
>$exception = $_;
>}
>}
>}
> }
> 
> if ($exception) {
>say "There was an exception: $exception ($!)";
> }
> 
> say "still running";
> ---


Is there a way to make the exception be thrown eagerly, at the devision 
statement rather than waiting until use, at the say statement?

Regards,
Todd Olson

Julia: was Re: Commensurability as Key

2013-08-23 Thread Todd C. Olson
It is interesting to look at what Julia has done to get numerical performance 
from a dynamic language
http://julialang.org/
and julia's visibility in to the internal representation
http://blog.leahhanson.us/julia-introspects.html

Regards,
Todd Olson