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

? as a unary operator screws up delimiters #116

Closed
ExpandingMan opened this issue May 25, 2017 · 4 comments
Closed

? as a unary operator screws up delimiters #116

ExpandingMan opened this issue May 25, 2017 · 4 comments

Comments

@ExpandingMan
Copy link
Contributor

? can be used as a unary operator. I'm not 100% sure when this feature was added, but it is starting to be used in the data ecosystem (see Nulls.jl). Anyway, currently using ? this way totally screws up delimiters, presumably because julia-vim expects ? to be a ternary operator. If it helps, ternary operators without spaces are very likely to eventually be deprecated, and it seems like really bad practice anyway, so if it made things easier to not recognize ternary operators without spaces, I suspect that wouldn't be such a bad thing.

@carlobaldassi
Copy link
Contributor

JuliaData/Missings.jl#17

@ExpandingMan
Copy link
Contributor Author

See responses here. Is there some kind of temporary, perhaps hackish and bad workaround for this?

@ExpandingMan
Copy link
Contributor Author

Thanks so much! That would have turned into a big pain!

@carlobaldassi
Copy link
Contributor

Note that with this change spaces are required on both sides of ? when it's used as a ternary operator. Which is not what the julia parser does, but anyway it's a decent compromise I think.

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

No branches or pull requests

2 participants