First impression is that it's very powerful but not too complicated. Jason...
6175
Doc O'Leary
doc_oleary
May 11, 2005 2:14 pm
... It seem decidedly . . . un-small. To get an idea of the higher-level collection concept, I'd really prefer to see just the primitive methods....
6176
Alwin Blok
alwinblok
May 11, 2005 3:49 pm
... Looks nice! I have some questions though, * I assume slice will modify the receiver and viewSlice won't ? * Any chance for the splice method? * Are the...
6177
Steve Dekorte
stevedekorte
May 11, 2005 4:18 pm
... yes. ... What does that do? Do you mean join()? ... last and first don't modify the receiver. I like the idea of a pop method. ... Interesting idea! The...
6178
Jason Grossman
jas0ngr0ssman
May 12, 2005 1:38 am
... I don't understand. Presumably this must be different from projectiles clone select(visible) foreach(redraw) or else you wouldn't be suggesting it, would...
6179
Steve Dekorte
stevedekorte
May 12, 2005 3:36 am
... There are 2 important differences: - it works on Strings (which are immutable) - it's more efficient than operations like "clone select" in cases where the...
6180
Jason Grossman
jas0ngr0ssman
May 12, 2005 5:34 am
... But I can already clone strings without any problem, and it works just the way I'd expect: Io> j := "a" ==> a Io> j ==> a Io> k := j clone ==> a Io> k =...
6181
Steve Dekorte
stevedekorte
May 12, 2005 6:19 am
... Yes, but you can't do mutable operations on them. With the current interface, we have the following problem: mutation methods like: removePrefix("foo") are...
6182
Rob Rix
rix_rob
May 12, 2005 6:36 am
I likes it. ... ____________________ Rob Rix, himself &c....
6183
Jason Grossman
jas0ngr0ssman
May 12, 2005 12:50 pm
... Yes, excellent. Thanks. But I'm a bit worried about the name of the new method: you had to explain to me how cloneRemovePrefix differs from clone...
6184
Doc O'Leary
doc_oleary
May 12, 2005 2:10 pm
... I'm going to dissent and say no. Abstractly, immutability is a (potential) property of any given object, and one that is quite rare at that. Some...
6185
Alwin Blok
alwinblok
May 12, 2005 3:50 pm
... I got used to pop, push, shift, unshift, slice, splice, from javascript (and ruby). Here's a spec for splice: ...
6186
Steve Dekorte
stevedekorte
May 12, 2005 4:10 pm
... Yes, we should consistently have something in the method names that: 1. distinguishes clone operations (in-place operations are the default), or 2....
6187
Doc O'Leary
doc_oleary
May 12, 2005 7:25 pm
... In the interest of small, 3 should be discarded immediately. ... This I agree with. ... The case against is that you get *nothing* by having the additional...
6188
Mike Austin
mike_ekim
May 12, 2005 7:54 pm
... I agree the 'clone39; seems clunky. What about making the mehtods past tense? There's already a 'capitalized39;, and I know that it returns a new string. ...
6189
Steve Dekorte
stevedekorte
May 12, 2005 8:01 pm
... Doc, It's more general than that. Consider: listOfBuffers foreach(removePrefix("foo")) and: listOfStrings foreach(removePrefix("foo")) and notice that the...
6190
William Tanksley, Jr
wtanksle
May 12, 2005 8:33 pm
... It seems to me that this problem could be resolved by having all the methods return the modified object, and therefore having the iterators replace the...
6191
Steve Dekorte
stevedekorte
May 12, 2005 8:41 pm
... It's more general than that. Consider: listOfBuffers foreach(removePrefix("foo")) and: listOfStrings foreach(removePrefix("foo")) and notice that the...
6192
peterhull90
May 12, 2005 9:07 pm
... Actually, the opposite is true. You didn't crash the C code at all, instead it exited (I guess) via an Io exception. The back trace shows the stack from...
6193
Steve Dekorte
stevedekorte
May 12, 2005 9:14 pm
... Sorry for the duplicate post. -- Steve...
6194
Doc O'Leary
doc_oleary
May 12, 2005 9:21 pm
... OK, but I don't understand what you want those examples to *mean*. For the first, the current and "new" (as I posit) behavior seems to be as expected: the...
6195
Mike Austin
mike_ekim
May 12, 2005 9:31 pm
... IoDesktop Cygwin 2005-05-06 is available: http://www.mike-austin.com/io/IoDesktop-Cygwin-2005-05-06.zip Mike...
6196
Steve Dekorte
stevedekorte
May 12, 2005 10:48 pm
... Mike, Thanks for keeping the windows binaries up to date! -- Steve...
6197
Jason Grossman
jas0ngr0ssman
May 13, 2005 1:13 am
... I agree with all of those points, but the problem remains that cloneFoo looks like it does the same thing as clone foo, but it doesn't always. So I suggest...
6198
Jason Grossman
jas0ngr0ssman
May 13, 2005 1:13 am
Thanks. Jason...
6199
Steve Dekorte
stevedekorte
May 13, 2005 10:41 am
... When doesn't it? It does the same thing as clone foo would if the receiver were mutable. -- Steve...
6200
Doc O'Leary
doc_oleary
May 13, 2005 11:28 am
... And *that* is *my* reason for not liking it: it does the same thing. You're adding things to methods that don't add anything. Then you go and add methods...
6201
Mike Austin
mike_ekim
May 13, 2005 8:08 pm
No comments on this? :) ... I'm not saying it's the best approach, but something to think about. Mike...
6202
Steve Dekorte
stevedekorte
May 13, 2005 8:28 pm
... It's a good idea, but the rule: - add "clone" to the front of the method name seems simpler than: - somehow rearrange the words and add an "ed" -- Steve...
6203
Rob Rix
rix_rob
May 13, 2005 9:48 pm
Then again, you do speak English, and verb tenses aren't really that complex when you're practised. I like the way it reads, certainly. ... ___________________...