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

Consider 120 character limit #67

@ZakTaccardi

Description

@ZakTaccardi

What's the reasoning behind having a 100 character limit? I advocate bumping it to 120.

Pros (of 120 limit)

  • Allows the developer to be more expressive and write more readable code
    • helps make up for the lack of 2/2/4 indenting
    • kotlin's coroutines and let/run/etc functions add a lot of indenting
  • Jetbrains Kotlin style guide does not specify a column limit, so this doesn't conflict
  • Monitors are more than wide enough today to accommodate this

Cons

  • Google Java style is 100
  • IntelliJ doesn't seem to be able to support different line lengths per file type

Note: The primary goal for line wrapping is to have clear code, not necessarily code that fits in the smallest number of lines.

I believe 120 helps achieve this goal by not forcing line breaks when they don't make sense. Though of course this could be abused.

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