News for hackers. Stuff that matters.
Re:100 Exercises to Learn Rust by vrnvu on Friday May 17, 2024 @04:49AM (#40387773)
Well, nobody forces you to use the setters/getters pattern. For internal implementation, you could access everything directly. For example, Zig encourages this style of programming.

In my experience in Rust, the use of getters and setters is less common compared to some other languages like Java.

There are no comments on this comment yet.