So most people agree: no aliases (shame ;) )

Soo... I see two potential changes as a result of this discussion:
 1. Add i8 for consistency
2. Add dictionary of reserved keywords and validate all type and variable names against it a. one global dictionary containing merge of keywords of all thrift supported langs - this will make IDL more portable b. dictionary per language, checked on generation (not parsing like in a. ) level. This might be a little easier to maintain, yet might be surprising for users that changing --gen X can lead to thrift errors.

In both 2a and 2b I'd expect error(/warning(?!)) like:
'int' cannot be used as a type name as it is keyword in [C, C++, Java, ...] language(s).

-KG

W dniu 2014-12-02 o 21:16, Jens Geyer pisze:
'long' on most 32-bit platforms is 32-bit. 'long' on Max and Linux 64-bit is 64-bits, but 'long' on Win64 is 32-bits.

True. Another point against it.



Reply via email to