Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4774
| From | Alan <alan.isaac@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Print bug with -script? (quotes display) |
| Date | 2011-09-06 07:59 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j44jsf$91c$1@smc.vnet.net> (permalink) |
| References | <201109042206.SAA21519@smc.vnet.net> <j42b57$rsl$1@smc.vnet.net> |
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
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