Hacker News new | past | comments | ask | show | jobs | submit login

> if we make a change in future it's going to take just as much work

In Java, changing from a field to using accessor methods requires source changes on the consumer side as well as the class itself. With C# properties this is transparent in source, but I think it still requires recompilation on both sides. Not using fields, therefore, means changes have less impact on other compilation units that might consume the class.




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

Search: