Re:Go's Declaration Syntax (2010)
by leaveyou on Sunday November 23, 2014 @07:46AM
(#8648623)
Many times I want to program in C or try to debug some open source apps but I'm always reminded why I didn't touch C/C++ since high school: macros, #include, CONSTANTS, long_identifiers, ugly castings everywhere and cryptic function pointers with the dreaded clockwise spiral rule. I still wonder how the world would look like today if instead of C++ we would have had a C v2 binary compatible with C but with type safety, interfaces and syntax similar to Go, or even this c2lang.org.
[ Parent
| on HN ]
Re:Go's Declaration Syntax (2010)
by raverbashing on Sunday November 23, 2014 @01:36PM
(#8649457)
C is great, but it is very limited. Mainly, it knows almost nothing about data structures (strings and arrays, with the absolute minimum support)
Merely reshuffling the syntax/grammar but not going deeper is not going to change anything.
C++ is, let's say, interesting. But it's always going to be a "bolt-on" addition to C, and keeping the redundancy (should I use open, fopen or a C++ object? when opening devices, open is usually used)
Yeah, having gone through latest version of Effective C++, updated for C++14 I have not really sure if I want to step away from JVM/.NET worlds back into C++ that I left in 2005.
Working alone in C++ is one thing, but having to read other people's code seems to turn into a mess if you have a mix of C++98, C++11 and C++14 code bases.
D?