I really like this idea.

On Mar 5, 2009, at 1:57 PM, Terry Jones wrote:

Hi all

"Rick" == Rick R <[email protected]> writes:
Rick> I'm for it, as long as there is a --non-strict compiler mode which
Rick> allowed older messages (but printed a warning)

I don't think I'd go that way. The main reasons are:

- the Thrift code base will become unclean due to supporting the old and
   the new ways of doing things, with deprecation warnings.

- if you let people just continue to use the more casual/lazy style of IDL
   spec, they will.

Seeing as the IDL file already gets parsed, it wouldn't be too hard to
write a tool that converts an old-style "lazy" IDL spec into a new- style more rigorous one (maintaining comments, whitespace, etc). That would give experienced Thrift users a way to easily upgrade. It would keep the code base clean. And it would have the desired effect on making newcomers write
stricter Thrift specs.

Terry

Reply via email to