The Case for D
-
If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.
I'm "learn the C++ really good, then try other stuff" kind of guy. In the middle of the journey I turned to C# detour, but I'm slowly returning to the main road :). D is not my cup of tea, I've spent too much time on C++ alternatives and now I regret some of my decisions.
-
Paul Selormey wrote:
f a language claims OOP and writes writeln("Hello, World"), I know there is a problem.
Like C++, D allows free functions and member functions. So I don't see any problem here. Or am I missing something? :)
Navaneeth How to use google | Ask smart questions
-
If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.
The idea is nice. But for my taste they moved to many advanced things into the language instead of the library. (Like dynamic arrays, hashtables, etc.) The case for string is different since it is always percieved as a basic data type in these days. What bothers me about this are unessecary incompabilities. In most C-anchestor-languages the append-operator for strings is "+". (c++,java,c#,...) And as long as there is strong typing and no implicit casts (like in c++) there is no danger of this. In D you use "~" for this as well as for appending some data to a dynamic array. But even if both is technically the same ("appending"), i'd rather liked dynamic arrays to stay "normal" classes, which can be derived or replaced if needed. And to make a clear distinction in code, i'd rather typed "myArr.Append(i);" instead of "myArr~=i;"
-
If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.
OT: but we bumped into Andrei in the bar at the end of this year's ACCU Conference[^], and he's a great conversationalist (expect to be challenged, and to end up laughing frequently). Definitely on my "interesting people to share a bar with" list. :)
Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
Paul Selormey wrote:
f a language claims OOP and writes writeln("Hello, World"), I know there is a problem.
Like C++, D allows free functions and member functions. So I don't see any problem here. Or am I missing something? :)
Navaneeth How to use google | Ask smart questions
N a v a n e e t h wrote:
Like C++, D allows free functions and member functions.
Inherited from C, it is C++ after all :) Best regards, Paul.
Jesus Christ is LOVE! Please tell somebody.
-
Nemanja Trifunovic wrote:
Frankly, I am not buying it at all, but decide for yourself.
Well, I just have to read the hello world program, and decide...
import std.stdio;
void main()
{
writeln("Hello, world!");
}If a language claims OOP and writes
writeln("Hello, World")
, I know there is a problem. Best regards, Paul.Jesus Christ is LOVE! Please tell somebody.
Cay you say "multi-paradigm"? :-D
-
If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.
-
Isn't this plagiarism or at least a copyright violation? The D Language has been around for quite some time. [http://www.digitalmars.com/d/2.0/overview.html](<a href=)[^]"> They could at least have used to D#.
That's the very language the article is describing. Although it is worth noting that there were other languages with the same name in the past :)
-
Nemanja Trifunovic wrote:
Frankly, I am not buying it at all, but decide for yourself.
Well, I just have to read the hello world program, and decide...
import std.stdio;
void main()
{
writeln("Hello, world!");
}If a language claims OOP and writes
writeln("Hello, World")
, I know there is a problem. Best regards, Paul.Jesus Christ is LOVE! Please tell somebody.
Paul Selormey wrote:
If a language claims OOP and writes writeln("Hello, World"), I know there is a problem.
Meh, they never claimed it was a "pure" OO language. If you want that, use SmallTalk :)
-
That's the very language the article is describing. Although it is worth noting that there were other languages with the same name in the past :)