If you're arguing, you're losing
summary
Claim: call functions without arguments by moving data out of the parameter list. Demonstrates five concrete approaches: globals (then thread-safe globals), objects and lambdas that capture local state, manual stack push/pop, and template-injected function pointers as hidden parameters. Provides code examples and slides, shows each approach compiling and producing the expected output, and treats it as a thought experiment about tradeoffs in safety, threadability, and clarity rather than a single recommended pattern.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:53Attempt 1.1: Nicer Globals?
- 2:05Objectify
- 2:34Lambda
- 2:57Roll your own?
- 3:25Attempt 3: Templates








