Feedback Thread: DIP 1044--Enum Type Inference--Community Review Round 1

IchorDev zxinsworld at gmail.com
Thu Nov 24 06:37:13 UTC 2022


On Wednesday, 23 November 2022 at 10:18:21 UTC, Quirin Schroll 
wrote:
> I know it sounds nitpicky, but I really dislike like acronym. 
> “ETI” is used (at least) in C++ for “explicit template 
> instantiation.” D has templates, so ETI can be a source for 
> confusion. The term has been [used in the 
> forum](https://forum.dlang.org/search?q=group%3AdigitalmarsD+%22explicit+template+instantiation%22) unrelated to C++.
>
> I don’t care for the wording of the DIP, but for what people 
> will refer to it in the forum. If it makes it into the spec, it 
> would be great if you could find something else. E.g. 
> “type-inferred enums” (TIE) is not that different, IMO “type 
> inferred enum members” (TIEM) is even better. Another one would 
> be “implicit enum member” (IEM).

D is not C++. The DIP proposes enum type inference, which is a 
descriptive term.
When the feature goes into the spec, I think it should be 
referred to as simply “type inference”, as it might not be 
specific to enums forever. I don't really know how to communicate 
that in the DIP, though. I feel that none of the terms you 
proposed really describe the feature accurately or succinctly in 
the same way as "enum type inference".


More information about the Digitalmars-d mailing list