-
Notifications
You must be signed in to change notification settings - Fork 139
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
Splitting unit definitions into different headers #164
Comments
We should remove those macros when we split. opt-out was better than nothing, but opt-in will be a lot easier and more intuitive on the user. Given how much work has been done to make units easy to install, and its availability in package managers, I don't see any downsides. |
How granular should the headers be? Per unit would result in a lot of headers, probably to the point of being impractical. Per dimension is another option, like how they are currently separated (as indicated by the How about the directory layout? I'd expect an all-including header and the granular headers to reside within the We'd need a |
Actually, unless you're thinking of being conservative on the mathematical functions and constants we have, they should also be split as to prevent someday having too many of them in the core header. |
My original plan was to split by dimension, and leave dimensionless and core lib stuff (and pi) in I like having a Constants become funny. I'd make a Math functions I'd leave in units/h, except for
Can you elaborate a bit? That said, I have the utmost respect for your opinion, so let me know if you have other ideas. |
I appreciate it!
See #167. Let's see what we have...
|
sounds good |
Related issues/comments:
units
#160 (comment)Regarding #48 (comment)
By splitting and not relying on those macros, there's less chances of clash between depending projects using
units
.The text was updated successfully, but these errors were encountered: