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

Valid case for concatenating a list literal #8

Open
marcosh opened this issue Nov 2, 2022 · 0 comments
Open

Valid case for concatenating a list literal #8

marcosh opened this issue Nov 2, 2022 · 0 comments

Comments

@marcosh
Copy link

marcosh commented Nov 2, 2022

I agree that [ foo ] ++ bar is better written as foo :: bar.

Still, I would say that foo ++ [bar] ++ baz is better than foo ++ bar :: baz.

It would be nice whether this rule did not produce a warning when the concatenation of a list literal with another value is preceded by another concatenation with a value

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

No branches or pull requests

1 participant