Thread: d programming language - a better c++?

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    71

    d programming language - a better c++?

    Anyone heard of this language?of course,you do.
    Last time I read,this language was supposed to become a better C++,flawless C++.I was interested at that time.But now,I barely heard any news about it.It's a shame really since there's lot of C++ guru that also contributed to this language.
    My question,for anyone learned d and programming with d.Is that language worth learning?I'm not talking about the language syntax but rather the libraries that come with it ,cross platform development,practicality in real work...etc.
    opinion anyone???

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I haven't actually used it, but I've investigated its standard library a bit. I find that it has a disappointing lack of structure or concept - a disjoint collection of utilities with no common design guidelines. Very much unlike the C++ standard library, I might say - more reminiscent of PHP's library.

    However, not having actually used in practice, I might be wrong about this.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    I've used it a little, and I went back to C++ when I was done.

    My overall opinion of D is a bit like my opinion of Java: it picks a number of features that someone (or some group of people) consider are the good bits of C++, eliminates what those same people consider to be bad bits of C++, and adds a few other language and library features that those people deem to be "good things". The problem is that a different group of people, if asked to pick a good set of language or library features, will probably produce something very different.

    I agree with CornedBee that D's standard library is a collection with no real consistency, although it does provide some capabilities that C++'s standard library does not.

    Overall, I would not use D in production code. Although D is intended as a "practical" language, it discourages some approaches I use practically and encourages other approaches I rarely use practically. In other words, my notion of "practical" is very different from that of the designers of D.

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    57
    I'm starting to use D; it's not bad.
    Unfortunately, since there isn't a very large amount of people using it, there aren't too many projects or libraries that you can use, other than Tango and Phobos.
    I'm hoping that gets better though.

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    71
    thanks for all your reply.
    hmm it seem d has lot of caught up that need to be done.Until then,I will just wait and see before learning d.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I lost all interest in the language when I saw garbage collection.
    The one big thing I love about C++ is the ability to freely choose what we want to do and how, not being forced to do something a specific way simply because of a shortcoming in the language.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    57
    You don't HAVE to use garbage collection, you can still manage your own memory.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Maybe I did judge D too harshly and too quickly, but it seems to be moving away from C++, with quirky VB-style syntax such as assigning a return value to the function name. I don't like it.
    I guess I can't really give a valid argument since I don't have any experience or knowledge about it except for some snippets from wikipedia.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Registered User
    Join Date
    Nov 2007
    Posts
    57
    I've found it to be a good language. There are some things that bug me about it, which are:

    1. Lack of support
    2. Compile time errors are obscure and hard to tell what the problem is, and there are shown in multi-passes. So once you fix a set of compile-time errors, you may still be in for some more after. Run time errors don't help much either.

  10. #10
    Registered User
    Join Date
    Feb 2011
    Posts
    13
    compiler error messages are always obscure and i think its a good thing
    otherwise what would we do with ourselves all day.

  11. #11
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by timmmay View Post
    otherwise what would we do with ourselves all day.
    You mean other than replying to threads that have been collecting dust for 3 years?
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  12. #12
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    463
    Two threads about D were resurrected today. what are the odds?
    "All that we see or seem
    Is but a dream within a dream." - Poe

  13. #13
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    A lot less in future, since both of them are now closed.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What language did they make Java in?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 07-03-2005, 04:18 PM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  5. Language Script..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 03-30-2003, 06:48 AM