Closed akrzemi1 closed 9 months ago
R
has become the standard way to call the range passed to an algorithm, as of C++20. I use it all over the place in my code as well. I think this is fine. I don't think people will be confused by the name. However, I did fix the str
/r
confusion -- thanks for pointing that out.
R
has become the standard way to call the range passed to an algorithm
Well, maybe you mean "has become the standard in some circles, like WG21"? I must say I wasn't familiar with that pattern. I am used to have identifiers actually reflecting what they represent in the declarations.
WG21 sure, but also the bible that the whole community collectively uses:
In this part of reference: https://tzlaine.github.io/parser/doc/html/boost/parser/parse_idm20259.html
The description uses term "Parses
str
", whereas the corresponding parameter is calledr
.The wider issue is that when one looks at the synopsis in https://tzlaine.github.io/parser/doc/html/header/boost/parser/parser_hpp.html, the name
R
doesnt give much hint about what the parameter is. Maybe call itinput
ortext
?