Closed daanhb closed 1 year ago
Fixed in the dev-0.6 branch:
julia> (-1..1) \ (0..1)
-1..0 (closed–open)
This may break code elsewhere, which relies on the difference of closed intervals being a closed interval. I had to change some non-related tests even within DomainSets making that assumption. So better to go in 0.6.
I don't have an immediate problem with it, but currently we have:
The result of the difference of two closed intervals should probably be a half-open one, i.e., the correct result of
[-1,1] \ [0,1]
arguably should be:That would mean changing the
setdiff
function ininterval.jl
here.