compile-time access to parsed code

Serg Kovrov kovrov at no.spam
Wed Feb 21 16:33:23 PST 2007


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.

> 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.

-- 
serg.



More information about the Digitalmars-d mailing list