by EdwardCoffin · 2y ago · 0 comments
When I was contemplating my own implementation from that book my sketchy API design just included a mandatory extra parameter to accompany such numbers, which would explicitly indicate whether the astronomical or other sign convention was to be used.
The extra parameter is a good idea. As I am implementing in Rust, I will follow the strong type system and provide two different types that can cast themselves into the other.