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

Re: [perl #79820] Make my $pi := 4; a syntax error

Thread Previous
From:
Reini Urban
Date:
November 27, 2010 09:47
Subject:
Re: [perl #79820] Make my $pi := 4; a syntax error
Message ID:
AANLkTi=go=PN0T6DG_zfr-QUFrE=-UsYNV2Q-zUhUaG6@mail.gmail.com
2010/11/26 Nicholas Clark <perlbug-followup@perl.org>:
> # New Ticket Created by  Nicholas Clark
> # Please include the string:  [perl #79820]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=79820 >
>
>
> Currently the := in my $pi := 4; is interpreted as an empty attribute list.
> As of 5.12.0, using := here issue a deprecation warning.
>
> No Perl 5 code on CPAN is using :=
>
> If code generators need the flexibility to generate empty attribute lists,
> it's trivial to do so by adding a space before the =
>
>
> I believe that there is consensus that
>
> a: it would be useful to have a binding operator in Perl 5
> b: that := is the obvious candidate
>
> hence at some point we need to re-use := for this.
>
> Use of := for binding can't be distinguished from use of it to mean an empty
> attribute list. Hence I propose that we make := a syntax error for 5.14, so
> that there is at least 1 major version of Perl 5 where any accidental use will
> be caught with a clear, comprehensible syntax error message.

Yes

When can we expect Chip to come up with BIND?
How can we help?
-- 
Reini Urban

Thread Previous


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