RFC: Allow longer binary operators

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

RFC: Allow longer binary operators

Holger Freyther
Hi all,

In the bluebook the length of a binary selector is limited to two, in the ANSI
Smalltalk draft the length is arbitrary. I would like to have some comments of
what needs to be changed and such.

E.g. upstream RBParser was changed to remove the check for the '-' as second
char in the selector and I wonder if I got it wrong...

regards
        holger

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

0002-Allow-to-have-arbitary-length-for-binarySelectors.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RFC: Allow longer binary operators

Paolo Bonzini-2
On 08/13/2010 11:03 PM, Holger Hans Peter Freyther wrote:
> In the bluebook the length of a binary selector is limited to two, in the ANSI
> Smalltalk draft the length is arbitrary. I would like to have some comments of
> what needs to be changed and such.
>
> E.g. upstream RBParser was changed to remove the check for the '-' as second
> char in the selector and I wonder if I got it wrong...

Thanks for the patch.  However, is there any actual usage of these apart
from PetitParser?

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: RFC: Allow longer binary operators

Holger Freyther
On 08/15/2010 09:41 PM, Paolo Bonzini wrote:

> Thanks for the patch.  However, is there any actual usage of these apart from
> PetitParser?

Hi,
I am not sure. One argument for them is that ANSI Smalltalk allows them, I
will try to figure out how to find binary selectors in Pharo and report back.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: RFC: Allow longer binary operators

Paolo Bonzini-2
On 08/15/2010 10:00 AM, Holger Hans Peter Freyther wrote:
> On 08/15/2010 09:41 PM, Paolo Bonzini wrote:
>
>> Thanks for the patch.  However, is there any actual usage of these apart from
>> PetitParser?
>
> Hi,
> I am not sure. One argument for them is that ANSI Smalltalk allows them, I
> will try to figure out how to find binary selectors in Pharo and report back.

Symbol allInstances reject: [ :x | x first isLetter ]

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk