Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve lambda formatting #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 8, 2017

  1. Improve lambda formatting

    google#19
    
    The style guide says:
    "A line is never broken adjacent to the arrow in a lambda, except that
    a break may come immediately after the arrow if the body of the lambda
    consists of a single unbraced expression."
    
    There are two changes here:
    1. Don't put a newline after the arrow.
    2. When the only argument to a function is a lambda, don't put
    a newline after the open-paren of the function.  I think
    this newline was going in because a lambda is a single expression
    that is longer than (the remainder of) a line.  But generally, it's
    prettier to break inside the lambda.
    novalis committed Jun 8, 2017
    Configuration menu
    Copy the full SHA
    4594013 View commit details
    Browse the repository at this point in the history