develooper Front page | perl.perl5.porters | Postings from November 2010

Re: [PATCH] Add "safe arrow/safe dereference" operator: &&->

Thread Previous | Thread Next
From:
Abigail
Date:
November 29, 2010 12:47
Subject:
Re: [PATCH] Add "safe arrow/safe dereference" operator: &&->
Message ID:
20101129204757.GC18489@almanda
On Mon, Nov 29, 2010 at 01:54:10PM -0500, Jesse Vincent wrote:
> 
> 
> I'd like to focus this discussion somewhat narrowly for a bit: 
> 
> Why _shouldn't_ we bless ->? as the correct syntax for "defined/safe
> dereference"?


It looks awkward. Arrows have a line of symmetry. ? breaks the symmetry. &
isn't symmetric either, but if you squint your eyes, it's kind of
symmetric. Also, arrows should have pointy things at the end. ? is quite
blunt. My votes go for, in that order:

    ->>
    ==>
    -=>
   &&->
    -&>

which are more or less symmetric, and end in pointy things.


Abigail

Thread Previous | 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