
8 Mar
2011
8 Mar
'11
2:39 a.m.
On Sun, Mar 6, 2011 at 16:25, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
If anyone else is reading this, please weigh in: do you prefer the current placement of these functions as static members, or moving them to free functions? The sole difference is a slight change in the syntax used to call them, they'd be equally efficient either way.
"Guideline: Where possible, prefer writing functions as nonmember nonfriends." ~ http://www.gotw.ca/gotw/084.htm Another way of looking at it: The more (interesting) functions you can implement as nonmember nonfriends, the harder it is for people to claim that they can't implement their own pet function with the interface you provided.