[squeak-dev] name puzzle: how to name a message
Nicolai Hess
nicolaihess at web.de
Tue Jul 7 14:06:13 UTC 2015
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/020f5b44/attachment.htm
More information about the Squeak-dev
mailing list
|