All Questions
Tagged with functions documentation
2 questions
0
votes
5
answers
4k
views
Named output parameters vs return values
Which code is better:
// C++
void handle_message(...some input parameters..., bool& wasHandled)
void set_some_value(int newValue, int* oldValue = nullptr)
// C#
void handle_message(...some ...
1
vote
1
answer
210
views
Documenting Function That Takes Random Parameters?
What's the best approach to creating documentation (displaying the function prototype if you will) for functions that take a variety of different forms in terms of parameters.
Let's say there are 10 ...