develooper Front page | perl.perl5.porters | Postings from August 2020

When was %hash in boolean context optimized?

Thread Next
From:
Eric Brine
Date:
August 3, 2020 15:06
Subject:
When was %hash in boolean context optimized?
Message ID:
CALJW-qGwSB0Oyke+cmqmWcLs8Bj0xBnPYwtoH1iQELzT9QM1HQ@mail.gmail.com
I believe C<< if (%hash) >> was optimized to avoid creating a string at
some point. Does anyone know when? (It would have been before 5.26, since
it stopped returning a string completely at that point.)

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About