▲ | zbentley 4 days ago | ||||||||||||||||
I mean, you kinda do. Otherwise you won’t understand why bit-shifting to std::cout prints something, which is pretty much day 1 of C++ hello world introduction (yes, I know there are introductions that don’t use that silly syntax sugar. They’re rare, like it or not.) Like, sure, you don’t have to understand cout’s implementation of operator <<, but you have to know a) that it’s overloadable in the first place, b) that overloads can be arbitrary functions on arbitrary types (surprising if coming from languages that support more limited operator overloading), and c) probably how to google/go-to-documentation on operators for a type to see what bit-shifting a string into stdio does. That’s … a lot more to learn than, say, printf. | |||||||||||||||||
▲ | jcelerier 4 days ago | parent [-] | ||||||||||||||||
> I mean, you kinda do. Otherwise you won’t understand why bit-shifting to std::cout prints something, but it's not bit-shifting, it's "<<", which can do different operations in different contexts. | |||||||||||||||||
|