So if you paste this as a comment somewhere you donât have to manually add double double-quotes. I donât use the result of print it at all, but I guess there are two scenarios for itâs usage. One as you described: copy the result and use it in tests or in some further computation. (but if you use TDD test are already written ;P). Another one is to copy the result and paste it somewhere as a comment in your code, to access it easily afterwards. If you have a double quote in your result it will break the comment, so the thing is escaped automatically. Uko
On 23 Feb 2017, at 22:25, stepharong <stepharong@free.fr> wrote:
Thnkas gabriel I'm hacking in an old Pharo 50 image and it was terrible because printit even a copyReplaceAll: '""' byt: '"' did not work. I do not understand what is the scenario to double quote comment character "
I understand single quotes but not double quotes. stef
Try doing Ctrl+P twice. It will not comment the printed string.
On Thu, Feb 23, 2017 at 4:17 PM, stepharong <stepharong@free.fr <mailto:stepharong@free.fr>> wrote: about quoting ;(
Hi
I have a string
'<li> <span class="author">Stéphane Ducasse and Damien Pollet</span>, <span class="title">Fingerprints</span>, <span class="journal">Journal of Information System</span>, <span class="year">2010</span>. </li> '
and when I do printIt in the debugger I get the following
"'<li> <span class=""author"">Stéphane Ducasse and Damien Pollet</span>, <span class=""title"">Fingerprints</span>, <span class=""journal"">Journal of Information System</span>, <span class=""year"">2010</span>. </li> '"
I do not get why we doublequote the character " inside string.
It means that I have to remove all the " inside to string to be able to express tests.
Stef
-- Using Opera's mail client: http://www.opera.com/mail/ <http://www.opera.com/mail/>