E
E
Egorithm2020-07-08 17:07:28
C++ / C#
Egorithm, 2020-07-08 17:07:28

What codestyle is acceptable for writing methods?

Is this practice generally normal that in methods the names of the arguments and the names of the class fields are the same? Because, apparently, compilers are very good at distinguishing them. In addition, it is allowed to duplicate type names for variables. It's just that, to be honest, these prefixes in the form m_or suffixes in the form jar me _.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2020-07-08
@EgoRusMarch

Not normal.
It's not good to give those names that are already in scope, even if "it compiles".
Don't forget that the crazy maniac who will read your code knows where you live.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question