You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strict produces an error when one uses something that results in 1:0. The goal here being to prevent cases where someone uses 1:length(x) which can produce 1:0 when x is empty.
It seems to me the strict package is intended to help catch errors before they actually occur. If that's the case then it should warn about any uses of code that looks like 1:length(x) regardless of if it produces 1:0 or 1:10.
The text was updated successfully, but these errors were encountered:
Strict produces an error when one uses something that results in 1:0. The goal here being to prevent cases where someone uses
1:length(x)
which can produce 1:0 when x is empty.It seems to me the strict package is intended to help catch errors before they actually occur. If that's the case then it should warn about any uses of code that looks like
1:length(x)
regardless of if it produces 1:0 or 1:10.The text was updated successfully, but these errors were encountered: