Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C++ taking the scala-trait

 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look here: http://gcc.gnu.org/gcc-4.4/cxx0x_status.html

looks like C++ is taking a similar way as scala did.
i.e.:
  • auto-typed variables
  • Lambda expressions and closures
  • Minimal support for garbage collection


  • Do all languages converge? Well - no, C++ will still support pointers and pointerarithmetik.
     
    Pat Farrell
    Rancher
    Posts: 4678
    7
    Linux Mac OS X VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    gaag. I've written elsewhere that I think Java took the wrong track with making changes and then insisting on backwards compatibility. I think Python and Perl have a better approach, do new stuff, fix bad designs, but be willing to break old code.

    I spent five or so years writing C++, coming from a C and other language world before that. I've been in Java with some Perl/python/php for over a decade. When I left C++, I never wanted to look back.

    Mostly because C++ was just C with classes, and lots of baggage layered on that made it very hard for professional developers to figure it out. All the const references to pointers, bletch.

    Adding functional programming ideas to C++ is not going to make it better. IMHO. They could just go ahead and call it D or D++.

    Of course, I'm biased. I think Java has too many C constructs, like int, float, etc. that no self respecting OO language would have.

    YMMV
     
    Marc Peabody
    pie sneak
    Sheriff
    Posts: 4727
    Mac Ruby VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Pat Farrell wrote:Adding functional programming ideas to C++ is not going to make it better. IMHO. They could just go ahead and call it D or D++.
    or D- or F
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic