encapsulation

Tag

Cards List
#encapsulation

Intermediary between public and private members

Lobsters Hottest ↗ · 2026-10-19 Cached

A Lobsters discussion exploring whether Rust (or future languages) should add a `read` visibility modifier for struct fields, allowing public read access without public write access, and asking about hidden language-design gotchas and sensible defaults.

0 favorites 0 likes
← Back to home

Submit Feedback