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

[perl #123184] pos++

From:
Father Chrysostomos via RT
Date:
August 11, 2016 20:01
Subject:
[perl #123184] pos++
Message ID:
rt-4.0.24-18684-1470945674-1009.123184-14-0@perl.org
On Tue Nov 11 14:01:11 2014, sprout wrote:
> The only drawback I can think of is that, while the first line here
> will work, the second will not, since it is not sufficiently
> unambiguous:
> 
> pos++;
> pos++ if $necessary;

And I think it would cause more confusion that the construct is allowed until you stick ‘if’ after it.  So I am rejecting this ticket.

-- 

Father Chrysostomos




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