Heh.

FWIW we had this since forever:
https://gist.github.com/Whateverable/78168042a011e01fc768c042b0d91898

On 2017-09-09 19:53:53, tomentiru...@gmail.com wrote:
> > my @h is default([])
> []
> > @h[0].push: 3
> [3]
> > @h
> []
> > @h[0]
> [3]
>
> > my %h is default({})
> {}
> > %h<a><b> = 3
> 3
> > %h
> {}
> > %h<a>
> {b => 3}
>
> The array/hash variable's default is an empty array/hash literal. If
> an element is autovivified, it can be accessed directly, but isn’t
> findable from the variable.

Reply via email to