-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
After reading https://yuri.is/not-julia/, one takeaway is that this pattern is a frequent source of bugs when combined with OffsetArrays (especially with the use of @inbounds). In almost all cases, 1:length(v) should be replaced with eachindex(v). If there's worry that this lint would be too intrusive for cases where you really want to iterate over the length of an array rather than its indices, this lint could be conditional on @inbounds being present.
hyrodium, TheCedarPrince, pfitzseb, Satvik, gdalle and 3 more
Metadata
Metadata
Assignees
Labels
No labels