Re: Equivalent to scanf()?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Equivalent to scanf()?
- From: Miles Bader <miles.bader@...>
- Date: 2007年11月14日 18:30:36 +0900
"steve donovan" <steve.j.donovan@gmail.com> writes:
> Lpeg to read a bunch of numbers seems like serious overkill. Perhaps I
> still don't *get* Lpeg, perhaps I don't think grammar-driven
> programming is a good clear way to do most things.
In my experience, unless your format is completely trivial (only numbers
one per-line or something), using lpeg will almost certainly be less
code, easier to read, far more precise, and faster than than the
equivalent ad-hoc approach.
-Miles
--
Quidquid latine dictum sit, altum viditur.