rust-unofficial / patterns

A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
7.84k stars 352 forks source link

SOLID principles don't really apply to Rust programs #405

Closed dev-ardi closed 1 month ago

dev-ardi commented 1 month ago

The obvious one here is the Liskov substitution principle which just doesn't make sense in Rust as there is no inheritance. The Open Closed principle just doesn't make sense anymore. The Interface Segregation principle is very debatable and shouldn't be stated as a fact.

I don't have a problem with the other two.