[Cuis-dev] Parser gets confused when using $| in binary selectors
Juan Vuletich
JuanVuletich at zoho.com
Fri May 13 11:32:42 PDT 2022
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
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/3b615918/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 5153-AtMinusDigit-inSmalltalkCode-JuanVuletich-2022May13-14h21m-jmv.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220513/3b615918/attachment.ksh>
More information about the Cuis-dev
mailing list