Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can change concrete types of methods without refactoring variable declarations. For example ,its nice when dealing with collections without referencing them as an interface. You might think "whats so wrong with using the interface as the declared type?" In C# you can run into issues with using interfaces as things like enumerators are objects in the interface but concrete types can use optimized structs.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: