compile-time access to parsed code

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Wed Feb 21 16:39:57 PST 2007


Serg Kovrov wrote:
> Andrei Alexandrescu (See Website For Email) wrote:
>> The DRY approach is to have the D code peek the database structure 
>> directly and generate the appropriate code. Then you benefit of 
>> keeping the two in sync without effort.
> 
> I disagree. Hasan meant different (from Rails) approach. I believe he 
> referring to Django. And it is perfectly valid point.

I'm lost here.

>> This is pretty much getting back to the old way of doing things - 
>> writing things twice and crossing fingers that they'll stay in sync.
> 
> Could not agree on that either. An analogy is a binary file format - 
> once defined it should not be changed. If changed externally (you would 
> say out of sync) it's integrity should be considered broken.

You are supporting my viewpoint. Because all I'm saying is that any 
"broken integrity" should be detected early and swiftly.


Andrei



More information about the Digitalmars-d mailing list