Re:Ranges, Code Quality, and the future of C++
by gumby on Wednesday December 26, 2018 @11:26PM
(#18767301)
They consciously try not to add many keywords or reserved characters. That has the downside but so does the alternative.
I do agree that the stream operators << and >> was a bad experiment in retrospect.
As an example, the < and > characters may indicate comparison (< and > in boolean expressions), a template declaration (< and > with a comma separated list following a function/class name declaration), a template specialization, an operator overload, an object access via pointer (->), a bit shift, (<< or >>), and possibly writing to a stream (<<).
A less egregious example, [] might be used to indicate indexing into an array, indexing into an object via overloaded [], declaring an array type, or declaring the captures in a lambda. While you can figure it out contextually, it's often irritating to have to figure out context first and then interpret the code.