so Wrote: > > C++ style aka Yoda style: > > 1. public double func(int input) const; > > 2. const double func(int input); > > 3. const double func(int input) const; > > > > VS. > > hypothetical left-to-right style: > > 1. public const func (int input) -> (double); > > 2. func (int input) -> (const double); > > 3. const func (int input) -> (const double); > > > > Which ordering makes for a more natural read? > > For you or for me? :)
Look at this from a "It reads like English" prospective and not from a "I'm an experienced c++ programmer and therefore already used to this crap" perspective. In other words, if you were just starting to learn your first programming language, what would confuse you less?
