Skip to content

4 spaces for alt indents #3078

Closed
Closed

Description

@brson

With the arrow syntax, alt expressions are more compact - there are more one liners, and multiliners don't always have to wrapped in a block, but can be standalone block-strucure expressions like 'if'. We may be able to reasonably go back to 4 spaces (vs 2) without running off the page.

Activity

  1. bblum commented on Aug 2, 2012

    @bblum
    Contributor

    i thought it was always 4 spaces. lint never complained about mine.

    but if we do have a guideline, i (weakly) favour the same tab width for all things.

  2. brson commented on Aug 2, 2012

    @brson
    ContributorAuthor

    It appears that vimmers have been subverting our 2-space formatting for some time! Emacs is set to 2 spaces.

  3. graydon commented on Aug 29, 2012

    @graydon
    Contributor

    I'm fine with 4, yeah. Easier for other indent-modes too.

  4. nikomatsakis commented on Aug 30, 2012

    @nikomatsakis
    Contributor

    the emacs mode has been updated, so I guess this is as "official" as it gets. I've been reformatting alts as I come across them.

  5. added a commit that references this issue on May 15, 2021
  6. added a commit that references this issue on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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