Hi Dave, Hi Chris, Hi all,
I noticed that there are a couple of do-it tools in Squeak that use #asString instead of #printString for displaying the result of an evaluation. This includes print-it in the search bar (SearchBar>>#printIt:result:), DoItFirst, the emergency evaluator, the CommandShell, and possibly others. This leads to strange outputs in some cases such as ByteArrays (see screenshot). I argue that generally, in do-it and inspection contexts, #printString should be preferred over #asString as the former provides more context (such as distinguishing between '2' and 2) and the latter has the semantics of a conversion only.
If you agree with me, I will be happy to patch the senders I found in the Trunk and invite you to fix yours in external packages.
Best, Christoph
--- Sent from Squeak Inbox Talk