3 ms·
> just use stack variables - the C way The problem is that C doesn't offer any resistance to using globals rather than stack variables, which led to much of th
by kibwen 2y ago
> just use stack variables - the C way
The problem is that C doesn't offer any resistance to using globals rather than stack variables, which led to much of the mess that the OOP revolution of the 80s was supposed to address. For every C program that eschews globals, you have a Toyota Camry, whose control systems famously contained "10,000 global variables" https://news.ycombinator.com/item?id=9643204 https://news.ycombinator.com/item?id=9643204
- mrkeen 2y ago> The problem is that C doesn't offer any resistance to using globals rather than stack variables Nor is there any resistance to writing 'public static' on a field anywhere in Java land. If that's a problem, you have to throw out most languages.