[Pharo-project] bindWith: implementation missing

Stéphane Ducasse stephane.ducasse at inria.fr
Wed Jul 11 10:00:58 EDT 2012


Ok thanks for the explanation. I never used it in VW.

Stef

On Jul 11, 2012, at 3:42 PM, Sabine Knöfel wrote:

> Hi Stef,
> 
> it is a helper method to put some strings together.
> Instead of using commata, like this
> 
> 'one: ','1',' two: ','2',' three: ','3'
> ==>> 'one: 1 two: 2 three: 3'
> 
> you use String>>bindWith:with:with:
> 	
> 'one: %1 two: %2 three: %3'
> 	bindWith: '1'
> 	with: '2'
> 	with: '3'
> 
> ==>  'one:  1 two: 2 three: 3'
> 
> It is more readable (and writeable:-)) imho.
> 
> I know this from ibm Smalltalk/VisualAge and as far as I remember,
> Visual works has it, too.
> 
> Greetings
> Sabine
> 
> On Wed, Jul 11, 2012 at 2:59 PM, Stéphane Ducasse
> <stephane.ducasse at inria.fr> wrote:
>> Hi sabine
>> 
>> what is bindWith:?
>> 
>> Stef
>> 
>> On Jul 10, 2012, at 4:49 PM, Sabine Knöfel wrote:
>> 
>>> Hi All,
>>> 
>>> I miss String>>bindWith:
>>>>> bindWith: with:
>>> etc.
>>> 
>>> in Pharo. Is there a reason for that missing?
>>> Has anyone an implementation for me?
>>> I dont want to reinvent the wheel ;-)
>>> 
>>> Greetings
>>> Sabine
>>> 
>> 
>> 
> 





More information about the Pharo-dev mailing list