[squeak-dev] Re: printing collections

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Nov 3 21:56:37 UTC 2009


2009/11/3 Andreas Raab <andreas.raab at gmx.de>:
> Nicolas Cellier wrote:
>>
>> OK, I see ' newFrom: ' can be considered as noise, so we can't have
>> our cake and eat it too ?
>> I find the fact that simple objects print as a simple code snippet
>> such a nice feature though...
>
> But why? How often have you taken the result of something and evaluated it
> again (not counting literals)? It seems an extremely rare case compared with
> what we mostly need to do: Quickly understand the kind of collection we're
> looking at and its contents. The ClassName(elem1, elem2) printing achieves
> this with minimal complications.
>
> If you really want the code to construct the object send storeString.
>
> Cheers,
>  - Andreas
>
>

Yes, I understand that.
The main use I see is to quickly modify in an inspector, especially in
the debugger.
I find it also convenient for toying in workspace and line-editing like scripts.

Nicolas



More information about the Squeak-dev mailing list