Fixing enum names in Phobos

Jonathan M Davis jmdavisProg at gmx.com
Thu Aug 4 09:00:29 PDT 2011


On Thursday 04 August 2011 08:59:11 Jonathan M Davis wrote:
> On Thursday 04 August 2011 07:33:55 Andrei Alexandrescu wrote:
> > On 8/4/11 12:16 AM, Jonathan M Davis wrote:
> > > So, does anyone actually have an opinion on this? Should we fix the
> > > names or not?
> > 
> > We should probably fix the names. A migration path is to simply keep
> > both names for a year or so and remove documentation for old names. For
> > example:
> > 
> > enum Variadic {
> > 
> >    no, /// doc
> >    NO = no,
> >    c, /// doc
> >    C = c,
> >    d, /// doc
> >    D = d,
> >    typesafe, /// doc
> >    TYPESAFE = typesafe
> > 
> > }

> Not to mention, I don't think that we can actually deprecate enums anyway,

I meant that I don't think that we actually actually deprecate individual enum 
_values_.

- Jonathan M Davis


More information about the Digitalmars-d mailing list