---
title: "Tech Twitter Fight - Private Variables"
url: https://daily.dev/posts/tech-twitter-fight---private-variables-ibxqeuuot
source_url: https://www.youtube.com/watch?v=XLGhXaKWQnU
type: video:youtube
source: "YouTube"
published: 2026-06-08T10:25:02.121Z
updated: 2026-06-08T10:25:22.373Z
tags: ["general-programming", "architecture", "rust", "zig"]
reading_time: 21
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Tech Twitter Fight - Private Variables

**[YouTube](https://daily.dev/sources/youtube)** · 21 min read · 0 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=XLGhXaKWQnU>

## Similar posts on daily.dev

- [Zig creator seeks 'uncompromising perfection' before blessing 1.0](https://daily.dev/posts/zig-creator-seeks-uncompromising-perfection-before-blessing-1-0-xjndfdjvj) · DEVCLASS · 28 upvotes · 14 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#architecture](https://daily.dev/tags/architecture), [#rust](https://daily.dev/tags/rust), [#zig](https://daily.dev/tags/zig)

[View this post on daily.dev](https://daily.dev/posts/tech-twitter-fight---private-variables-ibxqeuuot)
