| |
The article argues that function arguments are not "function colors" (a programming concept where changes propagate through entire call stacks), despite superficial similarities like Go's context.Context parameter. The author proposes a criterion distinguishing true colors from normal parameters: a color forces all functions in a call stack to change when the colored function changes, whereas normal parameter changes only propagate to direct callers and may stop at any level. The key difference is that colors create an unavoidable dependency throughout the entire call stack, making async/await a true color in some languages while regular parameters are not.
Read Full Article →
← More Tech news