Login  Register

Re: ContextPart >> copyTo: -> copyUpTo: ?

Posted by Frank Shearar-3 on Jul 25, 2012; 11:30am
URL: https://forum.world.st/ContextPart-copyTo-copyUpTo-tp4641427p4641437.html

On 25 July 2012 11:42, Mariano Martinez Peck <[hidden email]> wrote:
> Guys. Did I miss something or ContextPart>>copyTo:  should be renamed to
> #copyUpTo:  ?

You feel that #copyTo: implies an inclusive bound? There's only one
#copyTo: implementor (ContextPart) and only one #copyUpTo:
(SequenceableCollection) and both are "up to and including" copies. In
other words there isn't a clear precedence one way or the other for
having #copyTo: meaning either "and including" or "not including".
Your argument is, I guess, that there should be? (The method comments
are perfectly clear on what both method do, at least.)

frank

> Thanks,
>
> --
> Mariano
> http://marianopeck.wordpress.com
>