chronoxor / FastBinaryEncoding

Fast Binary Encoding is ultra fast and universal serialization solution for C++, C#, Go, Java, JavaScript, Kotlin, Python, Ruby, Swift
https://chronoxor.github.io/FastBinaryEncoding
MIT License
827 stars 86 forks source link

support typedef syntax in domain #40

Open renzibei opened 3 years ago

renzibei commented 3 years ago

Hello, this library is awesome!

I noticed that there is no support for typedef syntax in Domain at this stage.

There are a few scenarios where typedef maybe very useful, for example

When we want to represent the following C++ type

typedef vector<StructA> StructAVec;

It will be useful if we can implement this feature in the domain like:

typedef StructA[] StructAVec;

or

struct StructAVec: StructA[];

Thanks a lot!