[Cuis-dev] Message rename suggestion

Juan Vuletich juan at jvuletich.org
Tue May 19 07:46:59 PDT 2020


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

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


More information about the Cuis-dev mailing list