Laser-D announcement
Kapendev
alexandroskapretsos at gmail.com
Sat Aug 1 06:59:36 UTC 2026
On Saturday, 1 August 2026 at 06:49:51 UTC, Kapendev wrote:
> On Wednesday, 29 July 2026 at 19:56:31 UTC, Dibyendu Majumdar
> wrote:
>> On Wednesday, 29 July 2026 at 17:57:14 UTC, antonio wrote:
>>> Glad to see UFCS survived. Though with optional parentheses
>>> rejected, the chaining style loses some of its appeal. Was
>>> that trade-off deliberate?
>>>
>>
>> My thinking was that the parenthesis make it clear that its a
>> function call and not field access.
>
> Yes, but then we also have `object.thing`. The `object` could
> be a pointer or a simple value. My senior told me that being
> explicit is ALWAYS good, escpecially with the billion dollar
> mistake that are pointers, so I propose we change the pointer
> case to: `object->thing`.
>
> Much explicit. Very readable. A true C language successor.
Ignoring my above meme post, I do think that the `->` operator is
not that bad. I can see why some C boomers would like it.
More information about the Digitalmars-d-announce
mailing list