float-cmp icon indicating copy to clipboard operation
float-cmp copied to clipboard

Proc macro to derive ApproxEq?

Open swiftcoder opened this issue 6 years ago • 1 comments

It would be very convenient to be able to #[derive(ApproxEq)] on structs (much like one does with PartialEq). Would you see that a proc-macro crate for that fitting within the scope of float-cmp itself?

swiftcoder avatar Nov 20 '19 15:11 swiftcoder

That sounds like a great idea. I've never written a proc-macro so it's completely unknown territory for me, and I wouldn't be able to get to it right away, but I think yes it should be done.

mikedilger avatar Nov 20 '19 20:11 mikedilger