Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
indubitably
· 14y ago · 0 comments
I don’t like .this-is-correct{} because sometimes you have the same variable name in Javascript too, where dashes won’t work.
Comments
[–]
intranation
14y ago
Dashes map more cleanly to existing CSS syntax, eg nth-child, background-color, etc. Much like camelCase looks more like Javascript than my_variable.