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

spork/fmt silently converts "paren" arrays to "bracket" arrays #20

Closed
sogaiu opened this issue Jan 20, 2021 · 2 comments
Closed

spork/fmt silently converts "paren" arrays to "bracket" arrays #20

sogaiu opened this issue Jan 20, 2021 · 2 comments

Comments

@sogaiu
Copy link
Contributor

sogaiu commented Jan 20, 2021

Paren arrays appear to be converted to bracket arrays:

:parray (/ (group (* "@(" :root (+ ")" (error "")))) ,(pnode :array))

[:array xs] (emit-body "@[" xs "]")

Perhaps there is no obvious drawback. It also seems straight-forward to preserve the distinction.

Any reason for the current behavior?

@bakpakin
Copy link
Member

They are converted for uniformity, unlike tuples, brackets vs parents for arrays are completely identical in behavior in all cases. I prefer brackets.

@sogaiu
Copy link
Contributor Author

sogaiu commented Jan 20, 2021

Thanks for the explanation.

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