develooper Front page | perl.perl5.porters | Postings from December 2011

Re: [RFC PATCH 0/2] New operator: exists-or

Thread Previous | Thread Next
David Nicol
December 1, 2011 18:19
Re: [RFC PATCH 0/2] New operator: exists-or
Message ID:
On Wed, Nov 30, 2011 at 6:36 PM, Aristotle Pagaltzis <> wrote:
> * David Nicol <> [2011-11-30 22:50]:
>> if a reference to something that doesn't exist didn't autoviv it, and
>> was false in boolean context, and we allowed L-valuereferences, this
>> would almost work:
> So… if only Perl was some radically different language then it would let
> us do something… else than what we wanted?

ha ha. By introducing a dummy variable to do the copying, EXPR \\=
VALUE could expand to \EXPR ||= \do { my $dummy = VALUE}. My point,
aside from beating the dead horse of L-value references, which
confuses everyone but the subset of C++ programmers who think C++
references are the bee's knees,  and all the use cases seem to be
covered by Data::Alias anyway, was supposed to be, "here's another
reason that \\ makes sense as how to spell exists-or."

Application of Porter's value chain model to the executive function
reveals that the executive process transforms the input of information
into the output of decisions.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About