[Development] Naming convention for (scoped) enums

Alex Blasche alexander.blasche at qt.io
Thu May 17 10:14:15 CEST 2018


Hi,

The naming conventions for enums state that each enum value name must repeat a part of the enum Type name (for details see https://wiki.qt.io/API_Design_Principles#Naming_Enum_Types_and_Values)

In case of scoped enums this becomes a superfluous rule as the type has to be mentioned anyway. Does anybody object to modifying the above definition by adding an exception for scoped enums where you do not have to repeat a part of the enum type name?

--
Alex


More information about the Development mailing list