Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add style for expressions #3

Open
jaxxzer opened this issue Jan 24, 2019 · 1 comment
Open

Add style for expressions #3

jaxxzer opened this issue Jan 24, 2019 · 1 comment

Comments

@jaxxzer
Copy link
Member

jaxxzer commented Jan 24, 2019

Patrick likes no spaces for * or / operators, and space for everything else:
if ((_maxDepthToDraw - _minDepthToDraw)*_minPixelsPerMeter < 200) {

I like single space between every mathematical or logical operator:
if ((_maxDepthToDraw - _minDepthToDraw) * _minPixelsPerMeter < 200) {

Is this something we should add a guideline for? or just leave it to preference?

There is also the matter of a space after the if or while statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant