Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it is better for readability to use
std::min
andstd::max
functions instead of a ternary operator. Here are some examples:and
Also:
and
I understand that it is mostly a matter of taste, but I think using ternary operator hurts readability a bit and makes you read into the code more than it needs to. I think it is especially true for not very experienced and new-school programmers (which is who I consider myself to be).
Thank you so much for the book and for keeping it alive!
Beta Was this translation helpful? Give feedback.
All reactions