On Apr 1, 2010, at 4:39 AM, Igor Stasenko wrote:
> On 1 April 2010 01:52, Randal L. Schwartz <[email protected]> wrote:
>>>>>>> "Niko" == Niko Schwarz <[email protected]> writes:
>>
>> Niko> Hi, I just bumped into this. Probably this is intended somehow, but it
>> Niko> does seem weird enough to ask …
>>
>> Niko> (Object >> #hash) asString class
>>
>> Niko> returns 'Text'.
>>
>> It has to be, to hold styled text, right?
>>
> as to me, asking to string, should return string, not text.
>
Yes. And if a tool wants bold, it calls asText.
Another example of the "principle of the least surprise".
That's the reason why, for example, "Browser open" opens a Browser, not a
Workspace
Marcus
--
Marcus Denker -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project