in reply to Re^3: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl
in thread RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl

You do realize that Perl can't do this naturally, right?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl

Replies are listed 'Best First'.
Re^5: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl
by ikegami (Patriarch) on Jul 03, 2020 at 20:46 UTC

    I get it now. I wasn't aware of the recursive nature of the assignment. There's no mention of that in the MDN page. I've used it extensively, but not recursively as you demonstrated. (Upd: Sigh, I'm blind. Brainy not worky.)

Re^5: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl
by ikegami (Patriarch) on Jul 03, 2020 at 20:26 UTC

    uh? It can. Anyway, my post was confusing two concepts and I'm rewriting it (as a separate post). This will be evident there.

      > uh? It can

      Not in one statement, while diving into depth and grabbing values.

      My demo implements this.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery