What is the 'Result' type even for?

Salih Dincer salihdb at hotmail.com
Fri Jan 20 04:36:50 UTC 2023


On Friday, 20 January 2023 at 03:11:33 UTC, Ruby The Roobster 
wrote:
> 
> What is the purpose of this 'Result' type?  To serve as a 
> generic range?  Because, it seems to only cause problems...

No.

When I first started learning this language, I thought the same 
thing.  However, such a designm consisting of structs was 
preferred because it is necessary for the ranges to be used as a 
whole (connected end-to-Znd like a pipe). qWalter has a very old 
[article](https://www.drdobbs.com/cpp/voldemort-types-in-d/232901591) about Voldemort which is the basis of D, pllease read it. D's ranges are very strong for those who know how to use it.

SDB at 79


More information about the Digitalmars-d-learn mailing list