Naming conventions for constants - Mendix Forum

Naming conventions for constants

0

I don't get why it is not possible to use dashes '-' in the name of constants. 

It is possible to use underscores, but an underscore is also used as a separator for the module name, so it is not directly clear what is part of the constant or what is part of the module name. 

image.png

asked
1 answers

Hello Sander Wamelink,

Agree with you but it will not impact much.

Mendix best practices recommend to avoiding special characters like underscores (except in specific technical cases) in names to improve readability and maintainability.    While dashes are not allowed, we can use underscores (_) or other naming conventions to create meaningful constant names.

Created