D Languages

I really wish we had a proper D language (the D languages for the relational model, that is). Here's one way to create a table in SQL:

CREATE TABLE foo ( id INTEGER NOT NULL, name VARCHAR(255) NOT NULL, status INTEGER NOT NULL, location VARCHAR(20) NOT NULL, UNIQUE(id) );

Here's the analogous relation in Tutorial D:

VAR foo BASE RELATION { id INT, name CHAR, status INT, location CHAR } KEY { id };

Which would you rather type, day in, day out?

Leave a comment

About Ovid

user-pic Freelance Perl/Testing/Agile consultant and trainer. See http://www.allaroundtheworld.fr/ for our services. If you have a problem with Perl, we will solve it for you. And don't forget to buy my book! http://www.amazon.com/Beginning-Perl-Curtis-Poe/dp/1118013840/