
30 Nov
2009
30 Nov
'09
12:31 p.m.
From: Bas van Dijk
On Mon, Nov 30, 2009 at 6:22 AM, John Millikin
wrote: ...I've considered two possible error handling modes...
Regarding parsing, there's a third option: iteratees[1]. See [2] for a motivation and description of iteratees.
I think it's interesting to note that this works with iteratees because they essentially do exactly what Malcolm suggested. That is, when an error occurs, it is referenced in the internal state of the iteratee, and processing is aborted. Iteratees are strict, but they allow for many of the same benefits of laziness, and can work well for large data sets. John