# name puzzle: how to name a message

14 messages
Open this post in threaded view
|

## name puzzle: how to name a message

 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
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 x extra: z ? Stef
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 In reply to this post by Tobias Pape x withSuccessors: z Jakob 2015-07-07 15:14 GMT+02:00 Stéphane Rollandin <[hidden email]>: > x extra: z > > ? > > Stef >
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 but what if z is negative? On 07.07.2015, at 15:39, Jakob Reschke <[hidden email]> wrote: > x withSuccessors: z > > Jakob > > 2015-07-07 15:14 GMT+02:00 Stéphane Rollandin <[hidden email]>: >> x extra: z >> >> ? >> >> Stef
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 In reply to this post by Jakob Reschke Then maybe x toOffset: z? 2015-07-07 15:40 GMT+02:00 Tobias Pape <[hidden email]>: > but what if z is negative? > > On 07.07.2015, at 15:39, Jakob Reschke <[hidden email]> wrote: > >> x withSuccessors: z >> >> Jakob >> >> 2015-07-07 15:14 GMT+02:00 Stéphane Rollandin <[hidden email]>: >>> x extra: z >>> >>> ? >>> >>> Stef > > >
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 x walking: z ?
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 In reply to this post by Tobias Pape 2015-07-07 15:09 GMT+02:00 Tobias Pape :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 #asRangez asRange + xorz asRangeOffsetBy:xmaybe, asRange is not  a good name.nicolai
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 x andNext: zx length: z?On Tue, Jul 7, 2015 at 7:06 AM, Nicolai Hess wrote:2015-07-07 15:09 GMT+02:00 Tobias Pape :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 #asRangez asRange + xorz asRangeOffsetBy:xmaybe, asRange is not  a good name.nicolai
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 > x andNext: z +1 Stef
Open this post in threaded view
|

## Re: name puzzle: how to name a message

Open this post in threaded view
|

## Re: name puzzle: how to name a message

 In reply to this post by Tobias Pape On 07.07.2015, at 06:09, Tobias Pape <[hidden email]> wrote: > > 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 x steps: z x steps: z by: b x withNext: z x withNext: z by: b - Bert - smime.p7s (5K) Download Attachment
Open this post in threaded view
|

## Re: name puzzle: how to name a message

 #steps: reminds me of mophic - step interval, right?#withNext: reminds me of #withIndexDo:.  I'd expect it to provide two arguments to the block (until I learned otherwise).#next: is stream, and definitely not what we want.I like Eliot's questioning of adding a new method at all, although I'm guilty of doing that a lot.What about a new constructor on Interval?Interval startAt: x next: zInterval startAt: x next: z by: b?On Tue, Jul 7, 2015 at 1:06 PM, Bert Freudenberg wrote:On 07.07.2015, at 06:09, Tobias Pape <[hidden email]> wrote: > > 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 x steps: z x steps: z by: b x withNext: z x withNext: z by: b - Bert -