-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
display and printingAesthetics and correctness of printed representations of objects.Aesthetics and correctness of printed representations of objects.rangesEverything AbstractRangeEverything AbstractRange
Description
I think ranges could show
with the number of elements, at least for 3-arg show (or compact
is false, I never totally know when each is appropriate). I'm imagining something like:
julia> 5:1
5:4 (empty range)
julia> 5:-0.1:1
5.0:-0.1:1.0 (41 elements)
I think this would mitigate the confusion of empty ranges with various endpoints (like #59011) and just be generally a bit helpful when you have more complicated ranges.
mbauman, mikmoore and JeffBezanson
Metadata
Metadata
Assignees
Labels
display and printingAesthetics and correctness of printed representations of objects.Aesthetics and correctness of printed representations of objects.rangesEverything AbstractRangeEverything AbstractRange