This question is similar to Is it possible to define an alias for type (enum or message) in google protobuf?
But I want to know if thrift supports similar function. I couldnt find any such in documentation.
I want to write something like the following in thrift
enum EnumAllowingAlias {
option allow_alias = true;
UNKNOWN = 0;
STARTED = 1;
RUNNING = 1;
}
Thrift does indeed support typedefs. IMHO the Thrift IDL is one of the most elegant out there. Here's a couple typedef examples: