in reply to Re^3: Adding to array
in thread Adding to array
I mentioned efficieny to point out that there's no penalty. I am aware it won't matter in an IO context.
As a style issue it seems sensible to have the chomp close to the place where the lines being chomped are generated so that it is clear why the chomp is there.
You have a point there. It is offset by the intermediate array you (more or less have to) use, which is a distraction, not a clarification in this case.
It's a pretty minor issue however and the distance between the i/o and a single chomp would be small in this case any way.
Right.
Anno
|
|---|