> ..., and someone pointed out that it had a problem
> with code like "{ some_function_returning_a_hash() }". Should it give a
> closure? Or a hash ref? ...
Oh, well now that it's stated this way... (something went wrong in my
brain when I read the actual message) It returns a closure :(. A4 says
that as a term, { } define a closure, unless it contains a pair
constructor at the top level. But, thanks to Perl 6's smartness, that would
be excessive syntax anyway:
$hashref = some_function_returning_a_hash()
would do what you wanted.
Luke