kngwyu / num-alias

simple macros to declare 'type checked' aliases for integers and floats
MIT License
0 stars 0 forks source link

Consider implementing the traits from num_traits #2

Open Yoric opened 6 years ago

Yoric commented 6 years ago

Crate num_traits offers a number of traits that are very useful for dealing with numbers. I believe that macros int_alias! and float_alias! should implement these traits.

Yoric commented 6 years ago

Note: If you're willing to take a PR, I can try and implement some of this.

kngwyu commented 6 years ago

Thanks! But, now I usually use derive_more and some proc-macro crates for new type patterns, and feel them more useful than this crate. So, honestly I don't have a motivation to enhance this crate, sorry. But, sending PR is still welcome, if you're willing to :slightly_smiling_face: