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 Have Perl; Will Travel. Freelance Perl/Testing/Agile consultant. Photo by http://www.circle23.com/. Warning: that site is not safe for work. The photographer is a good friend of mine, though, and it's appropriate to credit his work.