> The problem is that if you have multiple optional or named
> parameters, things start getting uncomfortably prolix, and default
> values end up a long way from their owners:
> 
>  multi substr(Str $str, $from is optional = $CALLER::_,
>               $len is optional = Inf, $new is optional) {...}
> 
> vs:
> 
>  multi substr(Str $str, ?$from = $CALLER::_, ?$len = Inf, ?$new) 
>  {...}
What kind of wrench-in-the-works would this cause?

  multi substr(Str $str, ($from = $CALLER::_) is optional,
               ($len = Inf) is optional, $new is optional) {...}


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

Reply via email to