Re:Are dynamic languages going to replace static languages? ...
by setr on Wednesday August 04, 2021 @02:34AM
(#28057908)
Rust traits have the opposite behavior. If it says it’s an iterable, it must quack like an iterable.
Something that quacks like an iterable cannot be used as an iterable, unless the trait is explicitly stated — unlike python, where it simply has to quack.
Something that quacks like an iterable cannot be used as an iterable, unless the trait is explicitly stated — unlike python, where it simply has to quack.