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)
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
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