Open utterances-bot opened 2 years ago
Similar to the Class Instance section, the name of the section should be called either Enum Constructor or Enum Type rather than Enum Instance because in the code example it is specified the declaration of an enum type rather than making an instance of the enum type, which is also the thing that is showed in the following subsection.
If I understand correctly, Enum<T>
is used for representing anything that is an enum type (like Color
) rather than an occurence of that enum (like Color.Red
). Please correct me if I'm wrong
If I understand correctly,
Enum<T>
is used for representing anything that is an enum type (likeColor
) rather than an occurence of that enum (likeColor.Red
). Please correct me if I'm wrong
Judging from the definition, Enum<T>
it basically means the base type of anything.
But my point was simply the name of the tutorial beign not completely reflected in the example, in my opinion.
Whose great idea was it to make dividers semicolons instead of commas
Enum Instance - Haxe - The Cross-platform Toolkit
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/types-enum-instance.html