Tech Twitter Fight - Private Variables

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A podcast discussion sparked by a Twitter debate about whether private variables are a good language feature. The conversation covers Andrew Kelly's (Zig creator) decision to not support private variables, Hyrum's Law and implementation detail leakage, the anti-getter/setter argument, how C++ made private variables problematic by pushing implementation into headers, and how different languages like Rust vs Zig have different philosophical fits for access control. Participants largely agree that reflexive use of private variables and getters/setters is bad practice, while acknowledging there may be better alternatives like compile-time static analysis.

21m watch time
356 Impressions