this post was submitted on 24 Dec 2023
18 points (84.6% liked)

C++

1773 readers
6 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] MadhuGururajan@programming.dev 3 points 10 months ago* (last edited 10 months ago)

My point is that the design is wrong. Nobody expects [] as lvalue to update a value. Your argument is descriptive, mine is prespcriptive. I am saying that the C++ committee is wrong on this one (or whoever designed it this way)