[Newbies] concatenation of non-Collections

Bert Freudenberg bert at freudenbergs.de
Mon Nov 3 05:32:00 UTC 2008


On 02.11.2008, at 12:49, Ramon Leon wrote:

>>
>> Wouldn't it be convenient if you could do this:
>>
>> 	msg := 'The number is ', number
>
> msg := 'The number is {1} or else is {2}' format: { number. number2 }
>
> Behaves this way and looks much better when you have multiple args.


Very good point - this format is also better for translating.

It's probably good practice to use  "," only for debug output - and  
there it is useful because it saves keystrokes.

- Bert -




More information about the Beginners mailing list