Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Question regarding Mathematica's treatment of whitespace

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61869] Re: Question regarding Mathematica's treatment of whitespace
  • From: carlos at colorado.edu
  • Date: Wed, 2 Nov 2005 04:09:41 -0500 (EST)
  • References: <dk1k2g$9p9$1@smc.vnet.net><dk4cun$rum$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Mathematica should mandate ; as terminator of any expression,
as in C.   Then problems such as the one noted by the OP
would disappear: with CR/LF uniformly ignored source interpretation
becomes more linebreak independent.

Also the common warning about "this statement
will be interpreted as implicit  multiplication" in modules, with
consequent risk of infinite recursion, would go away.

To get an expression printed  a short  construct  such as

       a = Sin[Pi/2]   >>;

which outputs "a=1" could be introduced to avoid the
verbosity of Print.  This could be easily edited in and out in
module debugging.


  • Prev by Date: Re: Testing whether code is run in batch mode
  • Next by Date: Re:graphing x^2 + 4 on x, y, nad i
  • Previous by thread: Re: Question regarding Mathematica's treatment of whitespace
  • Next by thread: Re: Re: Question regarding Mathematica's treatment of whitespace