perl6-language
[Top] [All Lists]

Re: Allowing '-' in identifiers: what's the motivation?

To: "Mark J. Reed" <markjreed@gmail.com>
Subject: Re: Allowing '-' in identifiers: what's the motivation?
From: Nicholas Clark <nick@ccl4.org>
Date: Tue, 12 Aug 2008 12:29:51 +0100
Cc: perl6-language@perl.org
Delivered-to: mailing list perl6-all@perl.org
Delivered-to: perl6-all-poster@perl.org
Delivered-to: mailing list perl6-language@perl.org
Delivered-to: perl6-language@perl.org
In-reply-to: <f60fe000808110607y3c8b85efj152b3a4f81a3c80d@mail.gmail.com>
List-help: <mailto:perl6-all-help@perl.org>
List-id: <perl6-all.perl.org>
List-id: <perl6-language.perl.org>
List-post: <mailto:perl6-all@perl.org>
List-subscribe: <mailto:perl6-all-subscribe@perl.org>
List-unsubscribe: <mailto:perl6-all-unsubscribe@perl.org>
Mail-followup-to: "Mark J. Reed" <markjreed@gmail.com>, perl6-language@perl.org
Mailing-list: contact perl6-all-help@perl.org; run by ezmlm
References: <31238-20726@sneakemail.com> <489FB5FD.3030909@Yahoo.com> <19831-17172@sneakemail.com> <20080811094536.GY9326@klangraum.plasmasturm.org> <f60fe000808110607y3c8b85efj152b3a4f81a3c80d@mail.gmail.com>
Sender: Nicholas Clark <nick@flirble.org>
User-agent: Mutt/1.4.2.3i
On Mon, Aug 11, 2008 at 09:07:33AM -0400, Mark J. Reed wrote:
> I'm still somewhat ambivalent about this, myself.  My previous
> experience with hyphens in identifiers is chiefly in languages that
> don't generally have algebraic expressions, e.g. LISP, XML, so it will
> take some getting used to in Perl.  But at least in Perl's case the
> subtraction conflict is mitigated by the fact that many subtraction
> expressions will involve sigils;  $x-$y can't possibly be a single
> identifier.

Also, in Perl 6, constants aren't going to be bare words, because unlike
Perl 5, they're not going to be implemented as subroutines. So that's
another "obvious" thing that actually isn't going to matter here.

Nicholas Clark


<Prev in Thread] Current Thread [Next in Thread>