Naming Voldemort Types

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 25 13:58:42 PDT 2015


On 6/25/2015 11:54 AM, Andrei Alexandrescu wrote:
> On 6/25/15 6: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?
>
> Result. No stuttering please. -- Andrei
>

Also, consider that the mangled name includes the parent algorithm name. Let's 
not make mangled names excessively large, even if it is an implementation 
problem that we should address on its own anyway.


More information about the Digitalmars-d mailing list