Hacker News new | past | comments | ask | show | jobs | submit login

The optional brackets really makes the code look clean and easy to read!



I largely agree. It was (and is) a contentious issue, but I think it helps a lot in removing textual noise, in most cases. And it's always possible to add the brackets in where clarity helps.


I largely disagree and am not looking forward to dealing with mixed brace code at work.


Hopefully there will be a scalafmt rule that can enforce consistency.


And hopefully more than 0.1% of projects will turn the lint on..




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: