MadhuGururajan@programming.devtoTechnology@lemmy.world•Amazon accused again of overcharging shoppers with Buy BoxEnglish
6·
7 months agoNo the claim is that the inflation is artificial… not the prices.
No the claim is that the inflation is artificial… not the prices.
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)
I am trying C++ for this year’s advent of code. The most asinine thing i encountered is that the bracket operator on std::map writes 0 value if the key is not found. So your code doesn’t compile if you declare a const map or a const map reference as a function parameter. Compiler fails with “discards const qualifier on argument”.
I mean, wtf?
Edit: this is probably true for other STL containers
Do some websites refuse to function even with useragent spoofing?