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