News for hackers. Stuff that matters.
Re:The C++ Programming Language (4th Edition) by minamea on Saturday May 11, 2013 @11:46PM (#5693064)
That's exactly how I feel, I guess. D seems to have a lot more features (import, public import, and static import?) and I'm no expert but I feel some aren't all that necessary/add enough value. Go has fewer than C++, which I think is really good, except for some few ones that I wish were there. Only generic programming/templates off the top of my head actually.
Re:The C++ Programming Language (4th Edition) by zura on Sunday May 12, 2013 @03:23AM (#5693488)
And exceptions, or any other way to better handle error conditions, rather than that "if hell".
Re:The C++ Programming Language (4th Edition) by minamea on Sunday May 12, 2013 @03:36AM (#5693512)
See I don't know about that. Maybe exceptions was one of the features that was good to be left out. I think maybe the comma ok idiom forces the programmer to more actively check for errors and recover from them, and there is no need to do things like RIIA. Maybe also the code is clearer to read, because you can see "if not ok then do_this()" and know that this is error checking/recovery code, instead of looking up the call stack to see where the exception that was thrown in one place is being handled.
Re:The C++ Programming Language (4th Edition) by jamesaguilar on Sunday May 12, 2013 @01:42PM (#5695074)
I feel like panic/recover give me 90% of what I need from exceptions.