On Sat, Jun 4, 2022 at 4:16 PM Oodler 577 via perl5-porters < perl5-porters@perl.org> wrote: > I like this, but what distinction does "defined" or "truthy" > hold with references? > > It seems necessary for this to even be "true", the following > conditions must hold: > > * it's not undef > * it's blessed > * it "can" EXPR2 > For $foo?->{bar}?->{baz}, nothing needs to be blessed. Watering this feature down to only supporting method dispatch would be very disappointing. These should all be possible too: $foo?->* $foo?->[0] $foo?->@* $foo?->%* $foo?->()Thread Previous | Thread Next