Re: [Pharo-project] Collection extensions

2009-01-07 Thread Brian Brown
On Jan 5, 2009, at 7:56 AM, Lukas Renggli wrote: >> I published to the inbox some cool collection extension methods that >> we use all the time in Moose. >> flatCollect:, collectAsSet:, and groupedBy: > > I think Squeak already has far too many of these methods. I would > rather like to see them

Re: [Pharo-project] Collection extensions

2009-01-06 Thread Alexandre Bergel
Maybe the solution is to have a downloadable package >> >> Why can't we tag the methods with and build a tool that >> check when you do a fill out. > > The problem is that such message sends can't be reliably detected > statically. You're right, but a fairly good approximation can be made. Al

Re: [Pharo-project] Collection extensions

2009-01-06 Thread Stéphane Ducasse
On Jan 6, 2009, at 9:45 AM, Oscar Nierstrasz wrote: > > Hi Folks, > > I recall some time ago discussing extensions like split: and join: for > OrderedCollections to better support string operations typically > supported in scripting languages. Maybe we need to take a deeper look > at how best to

Re: [Pharo-project] Collection extensions

2009-01-06 Thread Lukas Renggli
> Yes can you make a list of the ones that are conflicting with other > implementations? Well, unfortunately these are all methods that are not specified in the ANSI standard. >>> Why can't we tag the methods with and build a tool that >>> check when you do a fill out. >> >> The problem is that

Re: [Pharo-project] Collection extensions

2009-01-06 Thread Stéphane Ducasse
On Jan 6, 2009, at 8:04 AM, Lukas Renggli wrote: >> So why do we do pharo. Really. If everything as to be compatible with >> other smalltalk. Terrible. >> Can't we get smarter? > > You are right, this change does not harm anyone not using the method. > > We'll have to update our tests of methods

Re: [Pharo-project] Collection extensions

2009-01-06 Thread Oscar Nierstrasz
Hi Folks, I recall some time ago discussing extensions like split: and join: for OrderedCollections to better support string operations typically supported in scripting languages. Maybe we need to take a deeper look at how best to refresh the Collections framework in Pharo to modernize i

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Lukas Renggli
> So why do we do pharo. Really. If everything as to be compatible with > other smalltalk. Terrible. > Can't we get smarter? You are right, this change does not harm anyone not using the method. We'll have to update our tests of methods not to be sent. Still, I would rather like to see methods r

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Michael Roberts
For me this is a problem of forces that do not easily resolve. If I read the goals from the Pharo site 1...a clean and lean open-source Smalltalk platform, derived from Squeak 2...the obvious choice for professional Smalltalk development 3...an emerging platform to help people invent the future

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Stéphane Ducasse
for these methods I could provide extensions for VW with test. I think that they are important. And I agree with Gary. > Can't remember the number of times I've had to implement these kinds > of > generally useful methods on various Smalltalk dialects (particularly > #groupedBy:, called it #cat

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Stéphane Ducasse
self anyOne. > ^self allSatisfy: [:e | (aBlock value: e) = val] > > Regards, Gary. > > - Original Message - > From: "Alexandre Bergel" > To: > Sent: Monday, January 05, 2009 6:02 PM > Subject: Re: [Pharo-project] Collection extensions > > >&

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Gary Chambers
case." |val| self ifEmpty: [^true]. val := aBlock value: self anyOne. ^self allSatisfy: [:e | (aBlock value: e) = val] Regards, Gary. - Original Message - From: "Alexandre Bergel" To: Sent: Monday, January 05, 2009 6:02 PM Subject: Re: [Pharo-project] Collection extens

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Alexandre Bergel
+ 1 On 5 Jan 2009, at 14:53, Gary Chambers wrote: > Can't remember the number of times I've had to implement these kinds > of > generally useful methods on various Smalltalk dialects (particularly > #groupedBy:, called it #categorizedBy: myself ;-) ). Really should > be part > of all Smalltal

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Gary Chambers
Can't remember the number of times I've had to implement these kinds of generally useful methods on various Smalltalk dialects (particularly #groupedBy:, called it #categorizedBy: myself ;-) ). Really should be part of all Smalltalks. I'd push for general adoption/standardisation for every dial

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Janko Mivšek
Hi Stef, Stéphane Ducasse wrote: > So why do we do pharo. Really. If everything as to be compatible with > other smalltalk. Terrible. > Can't we get smarter? > Why can't we tag the methods with and build a tool that > check when you > do a fill out. I do not write code to be portable to Visu

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Alexandre Bergel
Maybe some lint rules could detect the usage of non portable methods... Alexandre On 5 Jan 2009, at 11:56, Lukas Renggli wrote: >> I published to the inbox some cool collection extension methods that >> we use all the time in Moose. >> flatCollect:, collectAsSet:, and groupedBy: > > I think Squ

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Alexandre Bergel
I vote to get these methods in. Alexandre On 5 Jan 2009, at 10:30, Stéphane Ducasse wrote: > Hi all > > I published to the inbox some cool collection extension methods that > we use all the time in Moose. > flatCollect:, collectAsSet:, and groupedBy: > > http://code.google.com/p/pharo/issues/de

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Piers Cawley
On Mon, Jan 5, 2009 at 3:06 PM, Stéphane Ducasse wrote: > > On Jan 5, 2009, at 3:56 PM, Lukas Renggli wrote: > >>> I published to the inbox some cool collection extension methods that >>> we use all the time in Moose. >>> flatCollect:, collectAsSet:, and groupedBy: >> >> I think Squeak already has

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Stéphane Ducasse
On Jan 5, 2009, at 3:56 PM, Lukas Renggli wrote: >> I published to the inbox some cool collection extension methods that >> we use all the time in Moose. >> flatCollect:, collectAsSet:, and groupedBy: > > I think Squeak already has far too many of these methods. I would > rather like to see them

Re: [Pharo-project] Collection extensions

2009-01-05 Thread Lukas Renggli
> I published to the inbox some cool collection extension methods that > we use all the time in Moose. > flatCollect:, collectAsSet:, and groupedBy: I think Squeak already has far too many of these methods. I would rather like to see them all removed, than new ones added. As an author and maintain

[Pharo-project] Collection extensions

2009-01-05 Thread Stéphane Ducasse
Hi all I published to the inbox some cool collection extension methods that we use all the time in Moose. flatCollect:, collectAsSet:, and groupedBy: http://code.google.com/p/pharo/issues/detail?id=432&colspec=ID%20Type%20Status%20Summary&start=100 I would like to have your feedback because we