Naming Voldemort Types

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 25 06:59:12 PDT 2015


On 6/25/15 9:12 AM, "Nordlöw" wrote:
> I've noticed that the namings of lazy range voldemort types are
> inconsistent in Phobos. Some are named `XResult` others just `Result`,
> given that `x` is the parenting algorithm. What's the policy here?
>
> I would prefer the verbose `XResult` as it's more self documenting when
> debugging or using for instance pragma(msg, typeof(r)) where `r` is an
> instance of a lazy range.
>
> What do you guys think?

I think the actual name you use for a voldemort type is of no 
importance. I would like to see pragma(msg, typeof(r)) print something 
like functionThatReturnsVoldemort.Result

-Steve


More information about the Digitalmars-d mailing list