Remix.run Logo
connicpu 14 days ago

I know it's a convention since the inception of the language, but the operator overload abuse of the bitshift operator still makes me sad every time I see it :(

bluGill 14 days ago | parent | next [-]

You are not alone. many on the standard committee are trying to get rid of it. std::print is the new way to do io instead of cout in part so you don't have to abuse shift for io. This is new in c++23 though so few people know about it.

Bjarne appears to prefer cout though, so it isn't universal.

soursoup 14 days ago | parent [-]

Danish Bjarne may have his < right next to lshift. He needs to use shift+. to enter colon.

On US layout colon is a single keypress but < is shift+.

This may explain the discrepancy.

—- from someone who read Bjarne at 16yo. All hail the Bjarne

Chaosvex 14 days ago | parent | prev | next [-]

On the plus side, it's optional. The same thing can be achieved with put()/get() equivalents.

mhuffman 13 days ago | parent | prev | next [-]

>operator overload abuse

Array programming languages smugly enter the chat

13 days ago | parent | prev [-]
[deleted]