Open wnagrodzki opened 6 years ago
Type of defined enumeration is visible outside Message class as Message.Type.
class Message { enum Type { case Text case Image case Voice } let type: Type ... }
we aim not to pollute global namespace (with MesaageType in this case), increase discoverability of Message.Type type
Type of defined enumeration is visible outside Message class as Message.Type.