-
Notifications
You must be signed in to change notification settings - Fork 186
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
implicit_integer_linter shouldn't lint 1:10 (optionally?) #1155
Comments
implicit_integer_linter isn't really about performance, more about explicit typing. |
right -- the more important point is that |
Is there a philosophical difference to |
to me, it's different -- almost everywhere in R, for put another way -- the linter wants that's how I see it at least. PS I used to be a stickler about writing 1L:10L but got sick of the extra characters and especially at the cost of typing difficulty -- typing |
I tend to rarely need the To me the improved clarity of intent is worth the extra effort spent typing.
|
are you OK with adding an option to disable for |
Yes, that'd be okay. What about other such cases, e.g. |
personally I use |
Okay, so the argument could be named |
And what about, say, |
Revisiting this... Here in the source, the arguments to So |
Maelle, I think that's one of the more common places where I think of this linter as "good", I definitely think it should lint. My thinking is leaving this linter off is the better option if you don't think it should lint... Please open a separate issue if you'd like to discuss more, this one will close with #1691 |
but
typeof(1:10)
is"integer"
, and the performance is essentially identical:The text was updated successfully, but these errors were encountered: