Skip to main content

Questions tagged [functions]

For questions about the design or implementation of functions. This could include the syntax of defining and calling functions or implementing function calls at a lower level.

3 questions from the last 365 days
Filter by
Sorted by
Tagged with
27 votes
3 answers
8k views

Colored vs uncolored functions

I've heard people say "colored" functions (e.g. async functions, or functions marked with throws) are bad because they ...
Zizheng Tai's user avatar
3 votes
1 answer
266 views

Concept Overloading in C++

The meaning of function overloading is that two or more functions can have the same name but different parameters. In C++20, concept has been introduced. I found ...
JimmyHu's user avatar
  • 133
-2 votes
3 answers
248 views

How about support function return itself? [closed]

It seems that no language supports this feature: Define a function that can return the function itself. This function will continue to be called and continue to return itself. For example: ...
Aster's user avatar
  • 3,308