Better Programming

Advice for programmers.

Follow publication

Member-only story

Successful Object-Oriented Programming (OOP) in Rust: Mastering Five Critical Concepts From Python

Let’s closely look at the defining traits of Python’s object-oriented programming and assess how they match up with the Rust language. We will utilize Rust’s inherent strengths to identify solutions for OOP behaviors. So strap in and prepare for my journey into Rust and object-oriented programming!

Bruce H. Cottman, Ph.D.
Better Programming
Published in
21 min readMay 9, 2023
Photo by Surface on Unsplash

In object-oriented programming, the definition of OOP remains a contentious topic, with numerous computer languages vying for acceptance.

Rust is not one of them.

I was dishearted when I read, from several prestigious sources, that Rust was not object-oriented.

Luckily, I found the object-oriented behaviors I used in Python; I could get almost all of them in Rust. The one I could not get, inheritance, I get close enough in Rust.

I will repeat it.

Strap in and prepare for my journey so far into Rust and object-oriented programming!

OOP in Python

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Bruce H. Cottman, Ph.D.
Bruce H. Cottman, Ph.D.

Written by Bruce H. Cottman, Ph.D.

I write my blog utilizing decades of experience in investment, programming, and data science.

Responses (1)

Write a response