Skip to content

Add style for expressions #3

@jaxxzer

Description

@jaxxzer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions