On Saturday, 21 August 2021 at 04:34:46 UTC, Ali Çehreli wrote:
...

Consider __traits(identifier, member) instead. This one should return member name as string, removing the need of memberName function.

Also you could have an annotation @Equality.Include for example, and make mixin scan fields for it and include only those fields and methods that have it into compariosn and hashing.

Another problem that may arise is storage in local variable of fields before comparison, it might introduce unnecessary copy.

Regards,
Alexandru.

Reply via email to