Streaming parsers in D a novel design

Sebastiaan Koppe mail at skoppe.eu
Wed Apr 19 19:13:25 UTC 2023


On Wednesday, 19 April 2023 at 16:07:18 UTC, Jacob Shtokolov 
wrote:
> On Tuesday, 18 April 2023 at 14:26:00 UTC, Sebastiaan Koppe 
> wrote:
>> I think it will work beautifully until the day you want to do 
>> it asynchronously.
>
> Ranges can be async, in this case, you just need to return the 
> Result type (pending|error|success) and provide hints to 
> something that will be pulling from this range.

Maybe. But not without major hurdles. And you forgot (async) 
cancellation, which is a big deal, ask Rust.


More information about the Digitalmars-d mailing list