[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Reading CSV
- From: Geoff Leyland <geoff_leyland@...>
- Date: Wed, 4 Dec 2013 16:25:37 +1300
On 4/12/2013, at 11:52 am, Sean Conner <sean@conman.org> wrote:
> Even for such a simple format [1] I would still use LPeg since (to me)
> it makes the parsing code much easier to follow and modify if need be
I’m absolutely a fan of LPeg. Just happened to do something different this time. I think I still prefer that my code is dependency-free, but I agree it’s a pretty marginal trade-off.
> (did you realize you have to handle double quotes in a quoted string?).
Yep!
>> Sorry for not being clear initially: I know that the issues I mentioned
>> are simple to overcome and I have working code. Should I abandon that and
>> adopt an existing solution, improve an existing solution, publish my own
>> solution or just go back to my cave?
>
> That, I can't tell you. Working code trumps theoretical code any day.
I think I’ve learned that there’s no obvious best CSV reader that I’ve missed, so I will tidy my code up, push it out into the world and then we can have a laugh at it, plan a namespace or randomly generated UUID and brutally decide on an interface.