[squeak-dev] name puzzle: how to name a message

Chris Cunningham cunningham.cb at gmail.com
Tue Jul 7 14:22:50 UTC 2015


x andNext: z

x length: z

?

On Tue, Jul 7, 2015 at 7:06 AM, Nicolai Hess <nicolaihess at web.de> wrote:

>
>
> 2015-07-07 15:09 GMT+02:00 Tobias Pape <Das.Linux at gmx.de>:
>
>> Hi all
>>
>> I've got a small naming puzzle:
>>
>> So we have
>>         x to: y
>> that makes
>>         Intervall (x, x+1, x+2, ... , y)
>>
>> And we can do
>>         x to: x + z
>> to get
>>         Intervall (x, x+1, x+2, ..., x+z)
>>
>>
>> But we have x twice in there.
>>
>> What would you name the message
>>         x ???? z
>> that gives
>>         Intervall (x, x+1, x+2, ..., x+z)
>>
>> I'm curious for your answers :)
>>
>> Best regards
>>         -Tobias
>>
>> PS: #by: is already taken for #to:by:
>> PPS: A workaround is
>>         (0 to: z) + x
>>
>>
> How about doing it the otherway around, and find a good name for (0  to: z)
> for example #asRange
>
> z asRange + x
> or
> z asRangeOffsetBy:x
>
> maybe, asRange is not  a good name.
>
> nicolai
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150707/00ee4d0b/attachment.htm


More information about the Squeak-dev mailing list