Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: strange comma

by fullermd (Priest)
on Jun 30, 2010 at 00:14 UTC ( #847221=note: print w/replies, xml ) Need Help??

in reply to Re: strange comma
in thread strange comma

Without the extra comma, adding something to the list requires going back to the "clean => ...." line and adding a comma, and then adding the new thing on the next line.

In addition to that, it also means that the diff between revisions in your VCS (which you of course use, whichever one you use) ends up having that extra -/+ pair of lines just to add the comma, which makes it that much slower to scan visually.

Replies are listed 'Best First'.
Re^3: strange comma
by ikegami (Pope) on Jun 30, 2010 at 00:43 UTC

    ends up having that extra -/+ pair of lines just to add the comma

    That leads one of my two reasons for using it: It's easier to add a comma at the end of the line you are typing than to have to modify two lines (instead of one) when adding a new item to the list.

    (The second reason is that I think it looks better with the comma.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847221]
[Corion]: Nicholas Clark++ # read for a multichar block-delimiter by scanning for the last char, and only then check whether the whole delimiter was read.
[Corion]: At least if you're appending the data read to a larger buffer, this means you avoid the situation of "a delimiter was found but the other half has not been read yet"
choroba misses the context
[Corion]: choroba: Optimizing how Perl reads source code on startup (and then processes it line-by-line)
[Corion]: But in general, it seems to be an interesting approach I should think about - whenever I'm searching for something, to consider if I could search for the end of the token instead of the start of the token

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2016-12-06 15:00 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (107 votes). Check out past polls.