Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steveklabnik
on June 14, 2019
|
parent
|
context
|
favorite
| on:
The Ruby Style Guide
Ah, yeah, no worries! I was not :)
hartator
on June 14, 2019
[–]
It's actually an interesting thread. My take would have been to use comma when it's something we intend to modify, no comma when it's not. So intent is explicit.
Like:
STATES = [ :success, :error ] SUPPORTED_LANGUAGES = [ "en", "es", "fr", ]
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: