Idiomatic error handling for ranges

rumbu rumbu at rumbu.ro
Thu Apr 5 19:38:13 UTC 2018


On Thursday, 5 April 2018 at 17:36:56 UTC, Seb wrote:
> 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.

Thanks, ifThrown is perfect.


More information about the Digitalmars-d-learn mailing list