Conversation
The `isopen` function defined here is very different and so it seems best we define a new function rather than extend `Base.isopen`. Doing this means we need to export `Intervals.isopen` to make this change non-breaking however doing this results in: ```julia WARNING: both Intervals and Base export "isopen"; uses of it in module Main must be qualified ERROR: UndefVarError: isopen not defined ``` It then seems best to not export `Intervals.isopen` and also then not export `Intervals.isclosed` to keep things consistent.
|
Alternative. Also we can deprecate |
Very true we are free to name these functions however we want. That said having both |
True, but on the other hand, |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #100 +/- ##
==========================================
+ Coverage 96.55% 96.64% +0.09%
==========================================
Files 7 7
Lines 261 328 +67
==========================================
+ Hits 252 317 +65
- Misses 9 11 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Another example where is_open(interval1) && issubset(interval1, interval2)Seems like an unnecessary inconsistency |
|
@oxinabox https://github.com/search?q=isopen+language%3Ajulia&type=Code Also |
|
in our intental codebase, we use But this also likely means that this change to Intervals to use a different |
The
isopenfunction defined here is very different and so it seems best we define a new function rather than extendBase.isopen. Doing this means we need to exportIntervals.isopento make this change non-breaking however doing this results in:It then seems best to not export
Intervals.isopenand also then not exportIntervals.isclosedto keep things consistent.As this change is breaking it should be included in the next major release and we can postpone merging this until we want to make a major release.