Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4774

Re: Print bug with -script? (quotes display)

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail
From Alan <alan.isaac@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Print bug with -script? (quotes display)
Date Tue, 6 Sep 2011 07:59:11 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <j44jsf$91c$1@smc.vnet.net> (permalink)
References <201109042206.SAA21519@smc.vnet.net> <j42b57$rsl$1@smc.vnet.net>
Reply-To comp.soft-sys.math.mathematica@googlegroups.com
Lines 32
NNTP-Posting-Date 06 Sep 2011 07:02:02 GMT
NNTP-Posting-Host 141d0dd7.news.twtelecom.net
X-Trace DXC==;IOojn9QWZ;Y2[mY9c]5PC_A=>8kQj6]m^eQlV`f18WB\@>^=oXgBQEFiONJ7[GoV^]h9?aLfb1V
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:4774

Show key headers only | View raw


On Monday, September 5, 2011 7:17:59 AM UTC-4, Patrick Scheibe wrote:
> I don't consider this as a bug. It's just that
> the Mathematica frontend usually displays strings without the quotes: 


I'm not sure I follow.

Can you name another language where printing a string
to standard out will print the delimiters used to
create a string literal?  I cannot.  This is at least
unexpected, and I suspect is should be considered a bug.
Can you make an argument that a user should expect InputForm
rather than DisplayForm when printing to standard out
(i.e., when using the -script option)?

Btw, you cannot just convert to DisplayForm to Print the string;
that does not work at the console.  In short, the behavior of
Print is quite odd, unexpected, and I claim buggy when running
with the -script option.  (But I'm new to Mathematica and willing to
listen to reasons for this surprising behavior.)

Related: I do not understand why one must use ToString
on a StringForm when printing it in a console script.  The
behavior in a notebook is what is expected, and imo it should
be what one sees at the console.

If I understand correctly, the -script option is new, and it looks
like not enough of the Mathematica output behavior has been adjusted to
this flag.

Alan Isaac

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Print bug with -script? (quotes display) Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-09-05 11:17 +0000
  Re: Print bug with -script? (quotes display) Alan <alan.isaac@gmail.com> - 2011-09-06 07:59 +0000
  Re: Print bug with -script? (quotes display) Alan <alan.isaac@gmail.com> - 2011-09-06 08:00 +0000
  Re: Print bug with -script? (quotes display) Alan <alan.isaac@gmail.com> - 2011-09-06 08:07 +0000
  Re: Print bug with -script? (quotes display) Patrick Scheibe <pscheibe@trm.uni-leipzig.de> - 2011-09-07 09:47 +0000

csiph-web