4 ms·
The definition the author uses for colored function is too broad imo. void green(int p) void yellow(char k[10) Under his definition, these are colored functi
by randyrand 5y ago
The definition the author uses for colored function is too broad imo.
void green(int p)
void yellow(char k[10)
Under his definition, these are colored functions. The compiler will create colors for them, and you can only pass them to places that expect these colors.
I don’t think it’s a useful definition of color.
color != function signature.
- anecd0te 5y agoThe author is directly quoting the original description, from "What color is your function?" They even link it, here it is again : https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/ https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...
- randyrand 5y agoRight. But they also ignore most of the points and redefine it. It’s the beginning of the article.