HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Enum Instance #109

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

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

SimoneStarace commented 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.

subtra3t commented 1 year ago

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

SimoneStarace commented 1 year ago

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

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.

Sedomanai commented 1 year ago

Whose great idea was it to make dividers semicolons instead of commas