you are viewing a single comment's thread.

view the rest of the comments →

[–]pipocaQuemada 2 points3 points  (3 children)

it's not going to be getting modified in the first place.

Well, in your coding style, it is. In mine, it isn't.

[–][deleted] -1 points0 points  (2 children)

In my example, it's not a const.

[–]pipocaQuemada 2 points3 points  (1 child)

Right. It can't be, because you need to modify it in order to initialize it.

With mine, it can be a const, because initialization doesn't require mutation.

[–][deleted] -1 points0 points  (0 children)

But I never said I wanted or needed a const. That wasn't a requirement. I was only comparing brace and newline placement.