Just got through most of the learning material, is it really better to use inline functions in classes for performance?
Display All
as opposed to:
Display All
The book states that declaring a function prototype and then stating the function outside of the class treats it as an inline function, and that you can get better performance this way.
I like the first one as it separates it out of the class and makes it appear cleaner to me. I'm really enjoying this part so far, as I've written a records class that just stores a name and number, and then prints it out.
I'm also discovering that while doing the exercises in the book, I'm making things more complicated then they need to be.
Source Code
as opposed to:
Source Code
The book states that declaring a function prototype and then stating the function outside of the class treats it as an inline function, and that you can get better performance this way.
I like the first one as it separates it out of the class and makes it appear cleaner to me. I'm really enjoying this part so far, as I've written a records class that just stores a name and number, and then prints it out.
I'm also discovering that while doing the exercises in the book, I'm making things more complicated then they need to be.
You may call me char 71 97 100 100 97 109.