[
https://issues.apache.org/jira/browse/THRIFT-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052737#comment-13052737
]
Roger Meier commented on THRIFT-1173:
-------------------------------------
Hi Alessandro! Sorry for the delay....
I'm not familiar with LUA, however being a committer at Thrift extends my
knowledge on multiple languages from day to day;-)
I think a replacement of the Thrift Compiler with a template based approach is
a huge effort and a such generator that supportes languages has the be heavily
tested....
As mentioned, I really see a potential for that approach for the following use
cases:
* testing purposes
* prototype new languages
* generate custom documentation
* generate proprietary code.
Thanks
-Roger
> Using template system (for example: ctemplate) for code generation
> ------------------------------------------------------------------
>
> Key: THRIFT-1173
> URL: https://issues.apache.org/jira/browse/THRIFT-1173
> Project: Thrift
> Issue Type: Improvement
> Components: Compiler (General)
> Affects Versions: 0.6.1
> Reporter: alessandro rossi
> Priority: Minor
> Labels: generation, template
>
> IMHO, the code generation embedded into generator's code is not a good
> solution.
> With ctemplate (http://code.google.com/p/google-ctemplate/), for example, we
> can separate logic with generation code.
> If you want I can implement an example for cpp generator.
> Best Regards,
> Alessandro
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira