Resources for Trait Oriented Programming

Are there resources to help you think and model applications using Traits vs Classes?
Looks like Swift promotes this as Protocol Oriented Programming as here
Anything similar to this already in Rust that I might be missing?
Otherwise will try to apply that to Rust.
Links and Thoughts?
Thank you!

I think as a language Rust promotes this. Probably in Swift they have Classes hence the Protocol Oriented Programming emphasis. In Rust we don't have classes so by default any
behavior spanning multiple concrete types would need traits/interfaces.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.