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

Do we want whitespace around // #63

Closed
nickrobinson251 opened this issue Sep 6, 2020 · 2 comments
Closed

Do we want whitespace around // #63

nickrobinson251 opened this issue Sep 6, 2020 · 2 comments

Comments

@nickrobinson251
Copy link
Contributor

Currently guidance:

Surround most binary operators with a single space on either side: ...
Binary operators may be excluded from this guideline include: the range operator (:), rational operator (//), exponentiation operator (^)

But for the sake of implementing a formatter (#7, domluna/JuliaFormatter.jl#283), do we prefer 1//2 or 1 // 2?

@oxinabox
Copy link
Member

oxinabox commented Sep 7, 2020

1//2 is a single number

@oxinabox
Copy link
Member

oxinabox commented Sep 7, 2020

We want that it currently says

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