[dmd-beta] Migration path for enum Endian?
rmcguire at neonova.co.za
Wed Sep 7 01:38:04 PDT 2011
On Wed, Sep 7, 2011 at 12:44 AM, Andrei Alexandrescu <andrei at erdani.com>wrote:
> Probably a good idea would be to enhance the language to allow "deprecated"
> in front of single enum values:
> enum Test
> deprecated b,
> At this point we should pay a great deal of attention to this language
> On 9/6/11 5:39 PM, Jonathan M Davis wrote:
>> Also, I would point out that because you can't deprecate enum values, the
>> deprecation path is to have to have soft migration followed by removal.
>> So, I
>> don't know how much code breakage you're really saving by leaving the old
>> values in temporarily. We can still do it, but the deprecated keyword and
>> whatever it brings to the table can't be involved in the process, because
>> can't put attributes on enum values.
>> Fortunately, there weren't all that many enum values in Phobos which
>> follow the correct naming conventions outside of std.socket, and after
>> release, the only enum values with incorrect names should be the ones in
>> std.socket, which looks like it's probably going to be revamped anyway.
>> - Jonathan M Davis
>> dmd-beta mailing list
>> dmd-beta at puremagic.com
> dmd-beta mailing list
> dmd-beta at puremagic.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dmd-beta