C is Brittle D is Plastic
Sergey
kornburn at yandex.ru
Wed Mar 25 14:06:23 UTC 2026
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.
For example languages like Rust, Go, and C++ deliberately avoid
property syntax because:
- It hides computation behind field access
- Makes performance less obvious
- Reduces clarity (is it a field or a function?)
More information about the Digitalmars-d
mailing list