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

C++

1755 readers
1 users here now

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

Rules

founded 1 year ago
MODERATORS
18
C++ Should Be C++ (www.open-std.org)
submitted 10 months ago by lysdexic to c/cpp
you are viewing a single comment's thread
view the rest of the comments
[–] MadhuGururajan 3 points 9 months ago* (last edited 9 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)