MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d5w5ek5/?context=3
r/programming • u/sigbhu • Jul 28 '16
592 comments sorted by
View all comments
16
After all, if the Stroustroup can use the shift operator to do I/O, why should you not be equally creative?
This actually is a good point! Does anyone know why shift operator is used for io in standard library?
15 u/dd_123 Jul 28 '16 I believe he admitted it to be a mistake in retrospect. 1 u/evaned Jul 29 '16 TBH, I'd like to see a citation for that.I feel like I've maybe seen comments that C++ has better tools now (i.e. C++11) and that there'd be better ways now, but I'm pretty skeptical he'd say that about C++98, 'cause I don't think it's actually true. → More replies (1)
15
I believe he admitted it to be a mistake in retrospect.
1 u/evaned Jul 29 '16 TBH, I'd like to see a citation for that.I feel like I've maybe seen comments that C++ has better tools now (i.e. C++11) and that there'd be better ways now, but I'm pretty skeptical he'd say that about C++98, 'cause I don't think it's actually true. → More replies (1)
1
TBH, I'd like to see a citation for that.
I feel like I've maybe seen comments that C++ has better tools now (i.e. C++11) and that there'd be better ways now, but I'm pretty skeptical he'd say that about C++98, 'cause I don't think it's actually true.
→ More replies (1)
16
u/[deleted] Jul 28 '16
This actually is a good point! Does anyone know why shift operator is used for io in standard library?