Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kshay
on Aug 2, 2023
|
parent
|
context
|
favorite
| on:
DotDict: A simple Python library to make chained a...
So basically Perl autovivification for Python?
sekia
on Aug 4, 2023
[–]
Seems a subset of it. Practicality aside, Perl can autovivify not only hashes but also arrays:
my %x; $x{foo}[1]{bar} = 42; # %x is ( foo => [ undef, { bar => 42 } ] )
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: