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

The brackets, maybe. Preferences for brackets for single lines vary. I personally don't like them, but many code style guides (including MS's) recommend them.

The LINQ version should be allowed almost everywhere that has a good development group. Sometimes LINQ queries can get hairier than the equivalent foreach, but I've never worked anywhere that would frown upon the shorter/cleaner LINQ.



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

Search: