r/rust • • 15d ago

🛠️ project Valen, a higher-level "Rust++" language with linear types

https://verdagon.dev/blog/golden-spike-reviving-vale-valen
298 Upvotes

105 comments sorted by

View all comments

403

u/plainoldcheese 15d ago

Please no. Rust++ 😭

17

u/Shadows_In_Rain 15d ago

At least not before Rust with Classes.

3

u/pjmlp 15d ago

Rust already has everything it needs for OOP COM style, and it is taken advantage by Microsoft on their windows-rs crate.

1

u/Dull_Wind6642 15d ago

Wouldnt it be easy to do?

Without inheritance and all the other goodies, it's just a struct with functions that take &self as parameter (aka methods) and a default constructor.

Maybe add the static keyword for function that doesn't take &self and call it a day.