C is Brittle D is Plastic

Kapendev alexandroskapretsos at gmail.com
Sun Mar 22 15:05:41 UTC 2026


On Sunday, 22 March 2026 at 12:23:28 UTC, Sergey wrote:
> On Sunday, 22 March 2026 at 11:56:00 UTC, Dennis wrote:
>> You don't need to change `.end` into `.end()`, `.end` works on 
>> both fields and methods.
>
> Some languages consider this as a downside. Because of clarity 
> for human or llm who is reading the code - which is trying to 
> understand what is it method or field, structure or pointer to 
> the structure..

The same can be said for replacing the `->` operator with a `.`.
For example: `int a = variable.value;`
Is `variable` a pointer or a number in this example?
You don't know. Do you care? No, and if you do then you should 
know what your code is doing in the first place lol


More information about the Digitalmars-d mailing list