Hi! I'm an aspiring computer scientist with interests in quantum computing and distributed systems. In this blog, I write about the useful things I've learned during my programming journey.
Yeah, That's right it is less visual cluttering.
But I think the other benefits of having brackets (as I mentioned in the post) outperforms that.
I'm all about building a structure in the code to decrease the chance of future mistakes or bugs.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One line statements have less visual clutter, so they can arguably be more maintainable than unnecessarily adding curly brackets everywhere.
Do you really need brackets around “if (x < 0) break;” ?
Yeah, That's right it is less visual cluttering.
But I think the other benefits of having brackets (as I mentioned in the post) outperforms that.
I'm all about building a structure in the code to decrease the chance of future mistakes or bugs.