-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
error messagesBetter, more actionable error messagesBetter, more actionable error messagesmissing dataBase.missing and related functionalityBase.missing and related functionality
Description
@nalimilan - this is a common error.
First a case when I think error message is OK (or at least acceptable):
julia> missing:1:missing
ERROR: TypeError: non-boolean (Missing) used in boolean context
Now a case when new users will be confused:
julia> missing:0.1:missing
ERROR: ArgumentError: StepRange should not be used with floating point
Source why it is common:
julia> x = [missing, 1.1, 0.3]
3-element Vector{Union{Missing, Float64}}:
missing
1.1
0.3
julia> minimum(x):0.1:maximum(x) # clearly skipmisssing should be used but it is not obvious to the user
ERROR: ArgumentError: StepRange should not be used with floating point
Metadata
Metadata
Assignees
Labels
error messagesBetter, more actionable error messagesBetter, more actionable error messagesmissing dataBase.missing and related functionalityBase.missing and related functionality