develooper Front page | perl.perl6.language | Postings from April 2002

Re: Please rename 'but' to 'has'.

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
April 23, 2002 10:25
Subject:
Re: Please rename 'but' to 'has'.
Message ID:
a05111700b8eb494672d5@[63.120.19.221]
At 12:36 PM -0400 4/23/02, Buddha Buck wrote:
>At 08:58 AM 04-23-2002 -0700, Larry Wall wrote:
>>Precedence is set with the "like' property:
>>
>>     my sub operator:now ($a,$b) is like("but") is inline { $a but $b }
>>     sub operator:also ($a,$b) is like("and") is inline { $a and $b }
>
>OK, but that limits you to the, um, 24 standard levels of 
>precedence.  What do you do if you don't think that that's enough

Internally precedence is going to be stored as a floating-point 
number. Dunno how it'll be exposed at the language level, but at 
least there'll be more than just 20 or so levels.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

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