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

Re: [perl #127993] Version control conflict markers

Thread Previous
Ed Avis
April 26, 2016 09:56
Re: [perl #127993] Version control conflict markers
Message ID:
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 <>

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About