The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Is there ever a case where two consecutive commas in not an error?
Replies: 3   Last Post: Apr 1, 2013 12:56 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Reiss

Posts: 603
Registered: 2/24/06
Re: Is there ever a case where two consecutive commas in not an error?
Posted: Apr 1, 2013 12:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Although, as others have pointed out already a double comma may not be
a syntactically incorrect form in many circumstances (i.e., Null in
between the commas has meaning), it certainly is often a source of a
bug that is hard to track down. I believe that Workbench highlights
double commas (correct me if I am wrong) just for this reason.

On Mar 30, 4:06 am, W Craig Carter <ccar...@MIT.EDU> wrote:
> Hello,
> I am wondering if there is ever a case where ",," is not an error.
> For example, I make syntax errors like this:
> Plot[x,{x,0,1},ImageSize->Large,BaseStyle->Large,PlotRange->{All,{0,2}},,Pl otLabel->"label",Epilog->Line[{{0,0},{1,.5}}]]
> very often, and searching for them would be easier with highlighting.
> If ",," is never not an error, shouldn't it be a candidate for error syntax highlighting?
> (or, If ",," is always an error, it should be a candidate for error syntax highlighting)
> Craig Carter

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.