On Mon, May 02, 2005 at 10:51:57PM -0400, Uri Guttman wrote:
: >>>>> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
: 
:   LW>      multi sub opensocket (
:   LW>                 Str +$mode = 'rw',
:   LW>                 Str +$encoding = 'auto',
:   LW>                 Str [EMAIL PROTECTED]) returns IO;
: 
: and how will that support async (non-blocking) connects? or listen
: sockets? i assume this is sorta the replacement for IO::Socket which is
: a pure key/value api (except for the shortcut single arg host:port
: which is nice to also support).

Well, we could go that way, and just say that

    multi sub openfoo ([EMAIL PROTECTED]) {...}

gets all of its parameters, named or otherwise, from the slurpy array
just like Perl 5.  But then MMD has little to work with.  So you're
probably right, and there need to be more named arguments.  I was
mostly just trying to keep [EMAIL PROTECTED] out there at the end so that
openpipe could have multiple arguments, but we could just do that
with a single [...] parameter in any event, which could by default
be a positional parameter at the front, but also be moved to
the end as a named parameter if it has too much endweight.

Larry

Reply via email to