[Date Index] [Thread Index] [Author Index]
Re: Question regarding Mathematica's treatment of whitespace
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.