Re:Larry Wall has approved renaming Perl 6 to Raku
by popovmp on Saturday October 12, 2019 @03:26AM
(#21231242)
You probably mean: `@{ $hash->{array_ref} }` or `@{ $hash(array_ref) }`.
Either way shows exactly what is the structure of `hash`.
Re:Larry Wall has approved renaming Perl 6 to Raku
by petre on Saturday October 12, 2019 @04:10AM
(#21231421)
%hash is an actual hash with a nested array ref inside. If $hash is a reference to such a hash, yes. Never used the second syntax and I doubt that it works with something other than subroutines, but in that case it's either hash() where hash is an actual sub, or $hash->() where $hash is a subroutine reference. Both return an array refetence.
See? Confusing. That's why people hate Perl. At least I'm glad dereferencing is gone in Raku.
Great improvements are not enough compared to other languages, even Ruby which is quite slow itself. Have you wrote anything in Node, Dart or Lua? They feel like a F1 car where Raku is an 17th century cart.