Well in terms of semantics, it's not the correct thing to do (throw when reaching the end of file). Other than that, Isaac was saying that it's incorrect for the benchmarks - and I would add that it could also cause the benchmarks to show incorrect timings due to exception handling overhead.
On Thu, Sep 3, 2009 at 1:46 PM, <[email protected]> wrote: > I disagree.. how is it holding it up? What's wrong with wrapping > readline() in try/catch, as I did in > http://shootout.alioth.debian.org/u32/benchmark.php?test=regexdna&lang=all > > (where, incidentally, JavaScript V8 beats all other implementations) > > > http://codereview.chromium.org/173262 > -- Thank you Abdulla --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
