Type Inference for Struct/Enum Literals
Quirin Schroll
qs.il.paperinik at gmail.com
Mon Jul 8 17:56:01 UTC 2024
On Saturday, 6 July 2024 at 02:49:32 UTC, Steven Schveighoffer
wrote:
> The biggest problem with this is -- it breaks all existing
> knowledge of what this does. It is, for sure, the most natural
> syntax for this feature. One might argue that `$.symbol` could
> mean "global symbol" instead (or something else).
Considering how `$` is used in D, that is weird. Given that we
have `this.x` in a class, why not `module.x` for “global” (i.e.
module-scope) stuff?
More information about the dip.ideas
mailing list