I'm curious about the choice to make closest
, etc, be functions rather than methods
#73
BenMakesGames
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just finished watching the introduction video, and was surprised to see
bool result = contains(myRect, myCircle);
rather than
bool result = myRect.contains(myCircle);
Was this a consciously-made decision; if so, what were the pros and cons considered?
Pros of methods/member functions that come to mind:
vector.empty()
,string.find(...)
, etc)Beta Was this translation helpful? Give feedback.
All reactions