bluerobotics / bluerobotics/software-guidelines

Add style for expressions

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
12
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.