Explain the difference between Generics vs Trait Objects
Anonymous
Generics - Faster compile, larger binaries. Used when types are known and performance matters. Basically a normal fn function that takes arguments Trait Objects - When flexibility at runtime is needed with not always known variables. Slower performance but less binary size. More concerned with what things do. Nuanced and dependent on situation.
Check out your Company Bowl for anonymous work chats.