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

> You have simply moved the "special" entry to the beginning rather than the end.

Yes, but

1. Terms are more commonly added to the end than the beginning.

2. The beginning is often already special, e.g. starting with `SELECT`.

3. The commas are visually aligned/consistent with the indentation.

4. Because of #3, it's far easier to spot a missing comma.

I worked for years in a SQL-heavy role, and this style was the preference there, for these reasons.



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

Search: