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

> you just always need a braces around a single-line loop?

Yes. And ditto for `if (expression)` and a couple others. In developing D, I looked at what linters and coding standards did and incorporated into the language rules for troublesome things that there's just no excuse for.

For another tidbit, the JSF coding standard specifies that using a lower case 'l' as an integer literal suffix is not allowed, because it is too easily confused with '1'. D just doesn't allow it; you gotta use 'L'. No need to write a coding standard about it.



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

Search: