|
![](/i/fill.gif) |
>> I almost feel like I should be writing a "compiler" that takes the 3-line
>> version saying what data structure I want, and generates the 5-file
>> 44-line
>> monstrosity that the Java compiler expects. It would save me a bunch of
>> typing, and then I could go in and write the actual code that turns it
>> into
>> more than just a dumb data structure...
>
> Ah, good old code generation. Hope you don't have to track down a bug in
> the generated code anywhere.
Well, there's code generation, and there's code generation.
It depends whether you're using a generator to quickly build a skeleton
for you to fill in, or whether you're using a generator so that you can
code in the source language and not the destination one. ;-)
Post a reply to this message
|
![](/i/fill.gif) |