[Cuis-dev] Parser gets confused when using $| in binary selectors

Juan Vuletich JuanVuletich at zoho.com
Fri May 13 12:41:24 PDT 2022


Better names for the preferences could be #disabled, #st80, #ansiSmalltalk.

Default could be #st80 (meaning `1 at -2` answers the same Point as `1 @ (-2)`.

If nobody disagrees strongly, I guess I'll push it like that, using 
Hilaire's new PreferenceNG.

Thanks!

On 5/13/2022 3:32 PM, Juan Vuletich via Cuis-dev wrote:
> On 5/13/2022 1:41 PM, Nicolas Cellier via Cuis-dev wrote:
>> So we did not have to introduce the @- selectors & co...
>>
>
> Given the path followed by Squeak and Pharo, and what ANSI Smalltalk 
> says, and the preferences several of you just said, the attach is my 
> proposal.
>
> It adds a new preference #atMinusDigitMeaning. Possible values are: 
> #disabled, #negativeNumberParameter and #atMinusSelector. It doesn't 
> only control '@-', but any binary selector ending in $-, with size > 1.
>
> The question is what to use as a default value.
> ST-80 and Squeak go with #negativeNumberParameter.
> ANSI Smalltalk and Pharo do #atMinusSelector.
> #disabled is also a reasonable alternative, helping programmers 
> understand a smell in their code.
>
> Thanks,
> -- 
> Juan Vuletich
> www.cuis-smalltalk.org  <http://www.cuis-smalltalk.org>
> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
> https://github.com/jvuletich
> https://www.linkedin.com/in/juan-vuletich-75611b3
> https://independent.academia.edu/JuanVuletich
> https://www.researchgate.net/profile/Juan-Vuletich
> https://patents.justia.com/inventor/juan-manuel-vuletich
> https://twitter.com/JuanVuletich


-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
https://twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220513/ff93ac8b/attachment.htm>


More information about the Cuis-dev mailing list