On Mon, Nov 7, 2016 at 10:16 PM, cdm <cdmclean....@gmail.com> wrote: > > > On Monday, November 7, 2016 at 7:13:03 PM UTC-8, Yichao Yu wrote: >> >> > so, more "stuff" is happening >> > within the println() function ... >> >> No. println/print output the string, show/display prints it as an >> object and do so in a way that shows more detail about the string >> itself. >> Note that the quote isn't part of the string either so it shouldn't be >> surprising that the character `$` is printed as `\$` when showing a >> quoted string. > > > which was my point, print() and println() are doing "stuff" to the string, > else they would return the string as defined and as represented by > show() ...
fwiw, show does more stuff on the string than either print or println. None of them return anything even though print and println does not do any stuff on the string.