pinterest / riffed

Provides idiomatic Elixir bindings for Apache Thrift
Apache License 2.0
308 stars 37 forks source link

Auto import of structs and enums #13

Open scohen opened 8 years ago

scohen commented 8 years ago

With Thrift 0.9.4 (or 1.0, it depends) we get additional metadata in the erlang implementation that allows us to auto import structs and enums. This eliminates a bunch of boilerplate code that we currently have to write to re-define enums, and tell our struct module which structs we want to import.

Riffed is much more automatic now, all that needs to be done is the enumerize_* functions.

scohen commented 8 years ago

@jparise @jyang15

This relies on the next version of Thrift, so we can't merge until they release. It's a big improvement though.