On 23/03/14 06:34 AM, Ziad Hatahet wrote:
> Hi all,
> 
> Are there any plans to implement structural typing in Rust? Something
> like this Scala code: http://en.wikipedia.org/wiki/Duck_typing#In_Scala

Rust used to have structural records. The feature was removed because
it's far from orthogonal with traits. It's simply not how things are
usually done in Rust, so it's never going to fit in well. More ways to
do the same stuff doesn't really help anyone, and fragments the community.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to