Replies: 2 comments
-
Why did you close this discussion? This sounds like a great idea! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for the comment! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I find
quantity_cast
quite useful. Looking through some of the issues, it seems that many uses of quantity_cast are tied to specific contexts—especially when dealing with fundamental physical objects.Given that, I wonder if using
structs
could help make these conversions safer. IfNumbat
were to support something like Rust-styleimpl
syntax in the future, perhaps we could write things like following:For common objects like Photon or Electron, I think there might even be value in including them in the standard library.
This isn’t a feature request—just an idea I wanted to share. I’d love to hear what others think.
Beta Was this translation helpful? Give feedback.
All reactions