Idiomatic error handling for ranges

Seb seb at wilzba.ch
Thu Apr 5 17:36:56 UTC 2018


On Thursday, 5 April 2018 at 17:06:04 UTC, rumbu wrote:
> Is there a standard way to handle errors in a chain of range 
> transformations?
>
> [...]

Are you aware of ifThrown?

https://dlang.org/phobos/std_exception.html#ifThrown

It's not perfect, but imho a nice start and one of the places 
where lazy really shines.


More information about the Digitalmars-d-learn mailing list