Closed charlesgregory closed 3 years ago
It is reasonable, but these types of checks are in the runtime, rather than enforced at compile time , so conceptually they are a little bit different
That is true. Checks for valid coordinates would have to be enforced at run time. A performance hit but likely small or we could have such checks only be present in debug mode.
addressed in #88
Should we have functions for adding/subtracting from a
Coordinate
and by extensionCoordinates
? i.eFor coordinate pairs:
Also thinking of set ops with coordinates.
Another thought for improving
coordinates.d
is allowing the specification of maximum end coordinate. This would require us to store that value but we would gain the ability to check if a coordinate system is invalid due to the end coordinate being too large. This would probably only make sense forChromCoordinates
where a chromosome name is involved.