Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Case for D

The Case for D

Scheduled Pinned Locked Moved The Lounge
csharpc++comtoolsperformance
23 Posts 15 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nemanja Trifunovic

    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.

    Programming Blog utf8-cpp

    O Offline
    O Offline
    Oshtri Deka
    wrote on last edited by
    #14

    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.

    1 Reply Last reply
    0
    • N N a v a n e e t h

      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

      C Offline
      C Offline
      Caslen
      wrote on last edited by
      #15

      "hello, world" ???

      1 Reply Last reply
      0
      • N Nemanja Trifunovic

        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.

        Programming Blog utf8-cpp

        G Offline
        G Offline
        Gulli
        wrote on last edited by
        #16

        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;"

        1 Reply Last reply
        0
        • N Nemanja Trifunovic

          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.

          Programming Blog utf8-cpp

          A Offline
          A Offline
          Anna Jayne Metcalfe
          wrote on last edited by
          #17

          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"

          1 Reply Last reply
          0
          • N N a v a n e e t h

            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

            P Offline
            P Offline
            Paul Selormey
            wrote on last edited by
            #18

            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.

            1 Reply Last reply
            0
            • P Paul Selormey

              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.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #19

              Cay you say "multi-paradigm"? :-D

              1 Reply Last reply
              0
              • N Nemanja Trifunovic

                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.

                Programming Blog utf8-cpp

                D Offline
                D Offline
                dwieneke
                wrote on last edited by
                #20

                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#.

                N 1 Reply Last reply
                0
                • D dwieneke

                  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#.

                  N Offline
                  N Offline
                  Nemanja Trifunovic
                  wrote on last edited by
                  #21

                  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 :)

                  Programming Blog utf8-cpp

                  D 1 Reply Last reply
                  0
                  • P Paul Selormey

                    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.

                    N Offline
                    N Offline
                    Nemanja Trifunovic
                    wrote on last edited by
                    #22

                    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 :)

                    Programming Blog utf8-cpp

                    1 Reply Last reply
                    0
                    • N Nemanja Trifunovic

                      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 :)

                      Programming Blog utf8-cpp

                      D Offline
                      D Offline
                      dwieneke
                      wrote on last edited by
                      #23

                      Thanks for the info. I know that last fall Micorsoft was pushing a "D" language and I thought I had seen something recently in a Redmond blurb that they were going to offer it in the next version of Visual Studio. Perhaps I am wrong.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups