Linked by Owen Anderson on Mon 19th Apr 2004 05:43 UTC
General Development For years the development scene has been dominated by the C family of languages, primarily C itself and its immediate successor C++. Recent years have given rise to other C-descendents, however, such as Sun's Java and Microsoft's C#.
Permalink for comment
To read all comments associated with this story, please click here.
RE: System Programming and Critique
by Marcus Sundman on Tue 20th Apr 2004 21:50 UTC

> it should use math operators like the single-character
> less-than-or-equals

I disagree. You'd have to have non-standard keyboard mappings to support this.

> Fixed-width fonts are artifacts of ancient history and
> should not be required for new programming languages.

Well, unicode should be supported, but I don't agree that all characters should be 24 or 32 bits. You might want to use UTF-8 if you don't need to jump to the n:th character or if you're short on memory. OTOH you might want to use UTF-32 if you need to jump to the n:th character a lot, or you might want to use UTF-8 and a jump table or something.

From the D language specs:
| char = unsigned 8 bit UTF-8
| wchar = unsigned 16 bit UTF-16
| dchar = unsigned 32 bit UTF-32
So what this mean in practice? I don't know.
Anyway, I hope that the length of a string in D is the number of characters, and that there is some function/method to get the n:th character from a string.

> There is no reason to keep the old-fashioned if
> statement. The if/else/elsif/endif format is widely
> used and understood and is easier to deal with.

Are you saying that
| if (b1) {
| /*code*/
| } else if (b2) {
| /*code*/
| } else {
| /*code*/
| }
is harder to understand than
| if (b1)
| /*code*/
| elsif (b2)
| /*code*/
| else
| /*code*/
| endif"
and that it's worth to have different kinds of blocks just because of this?
I disagree.

> Single character graphics could be innovated to shorten
> the text. This requires some work on IDE's.

I disagree. As long as the code is text I think one should be able to type it using a standard keyboard. I really don't want to memorize lots of keyboard shortcuts, nor do I want to spend lots of time moving my hand between the keyboard and the mouse.
Completely visual languages are a different matter.