You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm adding trigonometric functions as I need them for my project. Since try_into() isn't allowed in consts and I can't think of any other way to do different values for them My current approach is to have a Consts trait with an impl for GeneralFraction, GeneralFraction, GeneralFraction and so on then I made a Trigametric trait which requires the Consts trait.
Hi @DrAlta.
Yes, that makes sense. That is not something we could have unified for all derived types.
E.g. BigFraction, which has infinite precision, can't possibly have a meaningful implementation for Consts trait.
I would also try choosing a more self-descriptive name for the Consts trait, which could imply the flavour of the consts it contains.
Hi, I'm adding trigonometric functions as I need them for my project. Since try_into() isn't allowed in consts and I can't think of any other way to do different values for them My current approach is to have a Consts trait with an impl for GeneralFraction, GeneralFraction, GeneralFraction and so on then I made a Trigametric trait which requires the Consts trait.
I currently just have atan() and atan2() you can view my work in the trigonometrics branch of my fork
The text was updated successfully, but these errors were encountered: