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

Non-ideal formatting on x.y.foo(...) #596

Closed
floitschG opened this issue Mar 16, 2017 · 2 comments
Closed

Non-ideal formatting on x.y.foo(...) #596

floitschG opened this issue Mar 16, 2017 · 2 comments

Comments

@floitschG
Copy link

We had the following lines:

Zone.current.scheduleMicrotask(
    Zone.current.bindCallback(callback, runGuarded: true));

They were changed to:

Zone.current
    .scheduleMicrotask(Zone.current.bindCallback(callback, runGuarded: true));

The original formatting feels more informative.

@escamoteur
Copy link

Perhaps this could be an option
#731

@munificent
Copy link
Member

The forthcoming tall style gives you:

Zone.current.scheduleMicrotask(
  Zone.current.bindCallback(callback, runGuarded: true),
);

That's not the same as the original formatting, of course, because of the change to how argument lists split. But I think it looks pretty good and avoids splitting after .current.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants