develooper Front page | perl.perl5.porters | Postings from April 2016

Re: [perl #127993] Version control conflict markers

Thread Previous
From:
Ed Avis
Date:
April 26, 2016 09:56
Subject:
Re: [perl #127993] Version control conflict markers
Message ID:
loom.20160426T114846-615@post.gmane.org
I agree, the check would have to be only in code, not inside heredocs or
other quoted strings or __DATA__ or other places where free-form text is
generally allowed.  Probably best to allow <<<<<<< and friends inside
regexps too, since there may be code which searches for conflict markers.

As an additional precaution against false positives, these markers could
give an error only when appearing at the start of a line.

Though I do feel in general that tokenization could be a bit stricter,
requiring white space between two punctuation operators when the last
character of the first equals the first character of the second, so that
for example '$a+++5' would be an error rather than equivalent to '$a++ +5'.
There is probably at least some (non-golfing) code using this style, however.

-- 
Ed Avis <eda@waniasset.com>


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About