---
title: "Discussion on \"Your Getters are Ruining Your Rust Code\" | Hashnode"
description: "Discussion on \"Your Getters are Ruining Your Rust Code\". Coming to Rust from object-oriented languages like Java, C++, or C# creates a dangerous form of muscle memory.\nIn the object-oriented paradigm, encapsulation dictates a simple rule: hide your struct f"
url: "https://hashnode.com/posts/your-getters-are-ruining-your-rust-code/6a321618c46666fa0d1de70f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your Getters are Ruining Your Rust Code](https://wizardcraftcode.hashnode.dev/your-getters-are-ruining-your-rust-code?utm_source=hashnode&utm_medium=feed)

Coming to Rust from object-oriented languages like Java, C++, or C# creates a dangerous form of muscle memory. In the object-oriented paradigm, encapsulation dictates a simple rule: hide your struct f

Jun 17 · 3 min read · wizardcraftcode.hashnode.dev  
Updated Jul 1  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#rust-programming](https://hashnode.com/tag/rust-programming)
-   [#rust-is-not-object-oriented](https://hashnode.com/tag/rust-is-not-object-oriented)

## Written by

[Merlin Wellington](https://hashnode.com/@wizardcraftcode)

@wizardcraftcode

  
[View profile](https://hashnode.com/@wizardcraftcode)

A software engineer for too long to admit and a Professor

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
