facebookarchive / swift

An annotation-based Java library for creating Thrift serializable types and services.
Apache License 2.0
900 stars 297 forks source link

swift-generator needs to generate equals() and hashcode for structs #188

Closed l3fang closed 9 years ago

l3fang commented 10 years ago

Without this, every time I re-generate the code for a given IDL, I have to manually go and resolve all the conflicts in my immutable types because I added equals() and hashcode() to some of the classes, but the generator overwrites my change.

Specifically I am talking in the context of swift-scribe in swift-fbcode. The LogEntry object had equals() and hashcode(), added by me.