6 ms·
I don't really understand your post. You criticized D for having more features than C++, and Go for having fewer.
by WalterBright 14y ago
I don't really understand your post. You criticized D for having more features than C++, and Go for having fewer.
- minamea 14y agoThat'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.
- zura 14y agoAnd exceptions, or any other way to better handle error conditions, rather than that "if hell".
- minamea 14y agoSee 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.
- jamesaguilar 14y agoI feel like panic/recover give me 90% of what I need from exceptions.
- jamesaguilar 14y agoGo <what I want> C++ D
- parbo 14y agoHave you tried Rust?
- jamesaguilar 14y agoRead some code thanks to your comment. I think I will try it.
- zura 14y agoIf only D had Rust like reference counted embedded smart pointers... [for a deterministic memory management]. I think that would be much easy to add than C++esque `smart pointers as library`.