>>Actually I can even imagine allowing almost all chars
>>in the middle of identifiers.

Is this a trend we should extrapolate into the lifetime scope
of the Perl 6 language?
How far are we in this process, given Unicode guillemets for hyper ops?

 
Kindly,
Michael

-----Original Message-----
From: TSa (Thomas Sandlaß) [mailto:[EMAIL PROTECTED] 
Sent: Montag, 11. August 2008 19:55
To: perl6-language@perl.org
Subject: Re: Allowing '-' in identifiers: what's the motivation?

On Monday, 11. August 2008 05:35:03 John M. Dlugosz wrote:
> E.g. see <http://www.perlmonks.org/?node_id=703265> :
>
> sub bar {
>      return 100;
> }
> sub foo { 50;}
> sub foo-bar {
>    return  rand(50);
>    }
> if (foo - bar != foo-bar) {
>    print "Haha!\n";
> }

Actually I can even imagine allowing almost all chars
in the middle of identifiers. The price is that *all*
infix operators need spaces. This seems to be the trend
right now. See e.g. the disambiguation of meta reduce
and array constructors or adverbs versus nouns in the
call syntax.

So, how simple would a tokenizer become when whitespace
separates almost all tokens? Noteable exceptions would be
the pre- and postfix operators.


Regards, TSa.
-- 
"The unavoidable price of reliability is simplicity" -- C.A.R. Hoare
"Simplicity does not precede complexity, but follows it." -- A.J. Perlis
1 + 2 + 3 + 4 + ... = -1/12  -- Srinivasa Ramanujan

Reply via email to