Bug or feature?Space and Return in source code

*To*: mathgroup at smc.vnet.net*Subject*: [mg44236] Bug or feature?Space and Return in source code*From*: Oliver Friedrich <oliver.friedrich at tzm.de>*Date*: Fri, 31 Oct 2003 03:01:02 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Hallo newsgroup, the following behaviour of either the kernel or the frontend is a little bit annoying. Readibility of Mathematica code increases with insertion of CRs in the source code (especially on PureFunctions/Map constructs, but be careful Example 1 works In[1]:= h[#]&/@{a,b} Out[1]= {h[a],h[b]} Example 2 works In[2]:= h[#]&/@ {a,b} Out[2]= {h[a],h[b]} The following examples return various error messages In[3]:= h[#]&/ @{a,b} Syntax::sntxf: "h[#]&/" cannot be followed by "@{a,b}". h[#]&/@{a,b} In[3]:= h[#]& /@{a,b} Out[3]= h[#1]& Syntax::tsntxi: "/@{a,b}" is incomplete; more input is needed. /@{a,b} In[4]:= h[#] &/@{a,b} Out[4]= h[#1] Syntax::tsntxi: "&/@{a,b}" is incomplete; more input is needed. &/@{a,b} So it seems to be that Mathematica input is not totally independant of CRs or Spaces. Is this behaviour intended? Regards Oliver Friedrich