-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Kiloyards and Kilofeet to the Length dimension #297
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late review. This seems good to me. I'll wait a few days for comments from other committers before merging
I'm reluctant to accept this. For every other unit of measure in the library, there's a standard that defines it (well, aside from the bitcoin currency). Kiloyards isn't a standard, though. I understand that the current library design makes adding custom units more cumbersome than it needs to be. |
I guess that is a valid point. Being non-US it's difficult for me to tell if |
@cquiroz for my employer it is a thing, and used more broadly in a nautical context in the U.S., although I think its more a historical norm than a real international standard. On reflection I believe it would be sufficient to represent it as 1000 yards (for a kiloyard) or 1000 feet (for a kilofoot) and we can probably get by with that. @derekmorr out of curiosity, what is the preferred way to go about adding additional units to this library without having to change the library itself? I see this and this from the README.md but based on what I could grok from the description I'm not sure that's really what I'm looking for. P.S. Thank you for Squants - this library has been a lifesaver! I can't begin to quantify the number of bugs this has squashed before they ever had a chance to manifest. |
@ALPSMAC You can create additional units outside of Squants by extending the As for this PR, do you have any reference to Kiloyards or Kilofeet? |
@ALPSMAC - Outside of the fact that these units may not be "standard enough" for this library, the PR is very well done. Thank you for your contribution. @derekmorr @cquiroz Any additional thoughts on this? |
First real attempt at a PR here for Squants (or much of anything for that matter). Trying to be helpful, so please be gentle ;-)
See issue #298
Thanks and Kind Regards,
Andy