-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add in ternary operator support #51
Comments
This would be awesome.
I'm aware that this could be rewritten to:
but this won't allow me to do this:
|
@Misiu yes I really need to find the time to investigate this. In the meantime you could write it as
It might not be as pretty but it will give the desired result |
@bijington thank you for the reply. |
@Misiu currently square brackets are reserved to identify a variable name which appears to be different to your example of using standard brackets. I had at one point considered making rules like this configurable but I never had a use case to cover it. That being said even if the brackets could be swapped we would still need the ternary operator added in to support the final part. |
Investigate the feasibility of adding in support for ternary operators such as
a ? b : c
, etc.The text was updated successfully, but these errors were encountered: