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

ternary operations #670

Closed
cybermerlin opened this issue Apr 16, 2015 · 5 comments
Closed

ternary operations #670

cybermerlin opened this issue Apr 16, 2015 · 5 comments

Comments

@cybermerlin
Copy link

beautify format for ternary operations if line length more to wrap_line_length

var some = question
    ? value1
    : value2;
@alexjamesbrown
Copy link

+1

@alexjamesbrown
Copy link

although possible duplicate of #605

@olsonpm
Copy link
Contributor

olsonpm commented Jul 1, 2015

If either of you are interested, bitwiseman and I are discussing implementation on this thread. Please join in if you have any input.

I only raise this because what began as 'ternary operations' newline placement is broadening out to all operators. Right now we're hashing out which operators possibly belong on a newline.

@bitwiseman bitwiseman added this to the v1.6.3 milestone Feb 3, 2016
@bitwiseman
Copy link
Member

#735 added option to control this.

@alexjamesbrown
Copy link

cool! thanks

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

4 participants