Re: function signatures?

2005-05-29 Thread Sam Vilain
Ingo Blechschmidt wrote: Are signatures going to be an exposed first class object in Perl 6? I hope so, too. ~&foo.signature; # Signature objects should stringify to a canonized form, e.g.: # ~sub (Str $bar, CoolClass $z where {...}) {...}.signature ==> # 'Str $bar, ANONCLASS(0xDEADBEEF)

Re: function signatures?

2005-05-29 Thread Ingo Blechschmidt
Hi, Yuval Kogman wrote: > We have a pretty complex declarative language for argument > processing in the parameter declaration: [...] > arity as a number does not give enough reflection into these > properties. Indeed. > Are signatures going to be an exposed first class object in Perl 6? I hope

function signatures?

2005-05-28 Thread Yuval Kogman
We have a pretty complex declarative language for argument processing in the parameter declaration: types, subtypes, constraint blocks context propagation default values slurpiness arity as a number does not give enough reflection into these properties. Are signat