Strong preference against eFoo, here. :) Just use enum classes.
On Fri, Apr 8, 2016 at 10:35 AM, smaug <[email protected]> wrote: > On 04/08/2016 07:38 PM, Nick Fitzgerald wrote: >> >> On Fri, Apr 8, 2016 at 9:29 AM, Birunthan Mohanathas < >> [email protected]> wrote: >> >>> On 8 April 2016 at 18:10, Kartikaya Gupta <[email protected]> wrote: >>>> >>>> Others? >>> >>> >>> enum class OptionD { >>> SentenceCaseValues, >>> ThisWontBeConfusedWithOtherThings >>> // ... because you need to use >>> OptionD::ThisWontBeConfusedWithOtherThings >>> }; >>> >> >> Strong +1 for enum classes. That way we don't need any more nasty >> prefixing >> and can >> instead >> rely on the compiler >> >> and type system. >> > > enum classes are great, but I'd still use prefix for the values. Otherwise > the values look like types - nested classes or such. > (Keeping my reviewer's hat on, so thinking about readability here.) > > > > -Olli > > _______________________________________________ > dev-platform mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

