On 2/16/2021 2:48 AM, Rob van der Heij wrote:
> When I'm really only taking a single sip, I see nothing wrong with 'peekto'
> and 'readto' in the loop, especially when you need it to detect EOF anyway.

This is for the case where I'm sipping an unknown number of records.  It
*should* never be zero, but I want to make sure I don't get stuck on the
same record forever if something goes wrong.  The extra VAR stage at the
start of the pipeline makes sure I'll always read at least one record,
even if I wind up discarding it.

¬R

Reply via email to