[Issue 3827] automatic joining of adjacent strings is bad
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Mar 10 17:56:10 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3827
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com
--- Comment #27 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-03-10 17:56:16 PST ---
(In reply to comment #26)
> > enum PEGCode = grammarCode!(
> >      "Grammar <- S Definition+ EOI"
> >     ,"Definition <- RuleName Arrow Expression"
> >     ,"RuleName   <- Identifier>(ParamList?)"
> >     ,"Expression <- Sequence (OR Sequence)*"
> > );
Note that this is Philippe Sigaud's code. So you can him, and me to the list of
people affected by this.
I'm doing string processing in D on a day-to-day basis, and whenever I have a
list of strings I eventually end up shooting myself in the foot because of a
missing comma. It's very easy (at least for clumsy me) to make the mistake.
E.g. writing some headers to ignore:
string[] ignoredHeaders = [
    "foo.bar"  // todo: have to fix this later
    "foo.do",  // todo: later
];
When I have comments next to the strings it makes it easy to miss the missing
comma, especially if the strings are of a different length.
-- 
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