Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

Style of if expressions used as ternary operators? #42

Description

@dhardy

Any recommendations on (white-space formatting of) the following?

let val = if some_long_and_complex_condition() {
    val_a
} else {
    val_b
};

verse something more condensed like:

// ugly, but at least not overly long:
let val = if some_long_and_complex_condition() {
    val_a } else { val_b };

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