C is Brittle D is Plastic

Walter Bright newshound2 at digitalmars.com
Mon Mar 30 04:50:00 UTC 2026


On 3/25/2026 7:06 AM, Sergey wrote:
> 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?)

I don't think C++ can claim any advantage here. Simply declaring a variable in 
C++ can invisibly invoke all kinds of code (same in D!). General operator 
overloading also suffers from this.


More information about the Digitalmars-d mailing list