[Cuis-dev] Message rename suggestion

Andres Valloud ten at smallinteger.com
Tue May 19 08:10:54 PDT 2020


I do not recall hearing that e.g. allButFirst is difficult to find.

On 5/19/20 07:46, Juan Vuletich via Cuis-dev wrote:
> On 5/18/2020 7:10 PM, Hernan Wilkinson via Cuis-dev wrote:
>> Hi,
>>  the messages #head: and #tail: were added recently to 
>> SequenceableCollection with a similar behavior as #first: and #last: 
>> but with the difference that #head: returns the first available 
>> elements while #first: signals an exception if you want more elements 
>> than available. The same for #tail:
>>  My suggestion is to rename #head: with #firstAvailable: and #tail: 
>> with #lastAvailable: for them to be similar with the current #first: 
>> and #last: message names, and therefore make them easier to find in 
>> the browser, the message names and cuis finder.
>>
>>  What do you think?
>>
>> Cheers!
>> Hernan.
>>
>> -- 
>> *Hernán Wilkinson
>> Agile Software Development, Teaching & Coaching*
>> *Phone: +54-011*-4893-2057
>> *Twitter: @HernanWilkinson*
>> *site: http://www.10Pines.com <http://www.10pines.com/>*
>> Address: Alem 896, Floor 6, Buenos Aires, Argentina
> 
> I have no preference. Andrés? Folks? What do you all think?
> 
> 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
> @JuanVuletich
> 
> 


More information about the Cuis-dev mailing list