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
It would be more appropriate to reserve @assert for debugging purposes only, and use proper exceptions for error message supposed to be helpful to the user.
We deal with many errors in parameters with an
@assert
macro. For instance:@assert hastime(d) "Data without time information cannot be resampled."
@assert
may be disabled with certain optimisations, and therefore not appropriate for this usage.https://docs.julialang.org/en/v1/base/base/#Base.@assert
It would be more appropriate to reserve
@assert
for debugging purposes only, and use proper exceptions for error message supposed to be helpful to the user.This page may be useful:
https://scls.gitbooks.io/ljthw/content/_chapters/11-ex8.html
The text was updated successfully, but these errors were encountered: