C is Brittle D is Plastic

libxmoc libxmoc at gmail.com
Sun Mar 29 10:33:14 UTC 2026


On Wednesday, 25 March 2026 at 14:08:41 UTC, Sergey wrote:
> On Wednesday, 25 March 2026 at 13:20:16 UTC, Quirin Schroll 
> wrote:
>> That’s an odd take. C# and Kotlin have properties since day 
>> one and it’s considered a win for each. Neither human nor AI 
>> should care if it’s a property or a field. The whole point of 
>> properties is being largely equivalent to fields when used. 
>> The rather annoying thing about D is that properties aren’t 
>> really first-class, but piggy-backed on functions.
>
> Also Zig mentioned it explicitly: 
> https://ziglang.org/learn/why_zig_rust_d_cpp/
>
> So good for C# and Kotlin, but there are other views on that.
> So nothing odd

What's odd is comparing D with C#/Kotlin to begin with. D is a 
general purpose programming language that targets machines, while 
C#/Kotlin are OOP languages that target a virtual machine with a 
JIT.

With that being said, properties are not liked by everyone, 
Jeffrey Richter[1], a renowned .NET expert and author of CLR via 
C#, dislikes them.

[1] https://www.goodreads.com/book/show/7121415-clr-via-c


More information about the Digitalmars-d mailing list