[Issue 5953] Too many trailing commas are accepted

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 8 04:44:17 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5953



--- Comment #3 from kennytm at gmail.com 2011-05-08 04:40:20 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > Please don't use Python to say a D syntax is invalid. Use the D spec or TDPL.
> 
> I feel free to show what's the design of other languages, if they are a good
> example.
> 

Yes, but with the 'accept-invalid' tag I think that you want to say
[,,,,,,,,,,,,,,,,,,] is invalid because it is invalid in Python. Sorry for
misinterpreting.

> 
> > and an AssignExpression cannot be empty, so '[1,,]' should be rejected.
> 
> OK. So it's not a design problem, just an implementation issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list