Arshia001 / FSharp.GrpcCodeGenerator

A protoc plugin to enable generation of F# code + supporting libraries
MIT License
80 stars 9 forks source link

Implement comparison on UnknownFieldSet #33

Open LyndonGingerich opened 1 year ago

LyndonGingerich commented 1 year ago

I would like to be able to use Set operations on my generated message types, but this requires comparison. Could we implement comparison on UnknownFieldSet so F# can use structural comparison?

LyndonGingerich commented 1 year ago

This would probably resolve #30.

LyndonGingerich commented 1 year ago

I also thought of implementing custom comparison that doesn't consider UnknownFields, but then comparing two items might return 0 when equality (which does consider UnknownFields) says they're not equal.