Adding a new design constraint to D
Salih Dincer
salihdb at hotmail.com
Tue Jun 14 07:51:29 UTC 2022
On Tuesday, 14 June 2022 at 07:34:43 UTC, forkit wrote:
> [...]
> _var <- does that underscore infer an intent for scope
> private?? You need additional information to make that
> judgement.
>
> An underscore 'convention' is no substitute to an explicit
> intent that cannot be missinterpreted or mistakingly bypassed -
> the compiler will know my intent, and enforce it, and anyone
> reading/modifying/using my code will know my intent also.
>
> the same conclusion must also apply to the one-class-per-module
> argument.
> [...]
You're right...
SDB at 79
More information about the Digitalmars-d
mailing list