Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
Abyx's user avatar
  • 1,445
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 ...
Daniel's user avatar
  • 1,896