Wouldn’t it make sense to access enums via dot syntax, together with maybe/optionally not to pushing all enum members into the scope? I currently have two issues:
- I am not able to create different enums with the same member names (which could have different meanings per enum context).
- At exporting an enum, the members don’t get exported. So I either have to write
<Module>.<Enum member>or export all enum members.
- The module prefix doesn’t seem nice/logical to me as the context (enum name) gets lost, and the module name may not have anything logically in common with the enum member name.
- Exporting all members trashes the workspace/scope and blocks variable names.
This could be solved via
<Enum>.<Member> access syntax, so that I can just export the pure enum names, access all members without difficulties and still have a clean workspace. This would also be more similar to the C style usage of enums.