I was happy to learn about typeof, simultaneously surprised, because I had just learned about decltype in C++, and now less excited about decltype because it seems like simply putting back a useful feature first found in C and taken out of C++ for unknown reasons.
Bear in mind that typeof is a GNU extension and not actually part of standard C. I’m not a C++ person, but from a cursory search it appears that decltypeis, in contrast, officially standardized.
I was happy to learn about
typeof, simultaneously surprised, because I had just learned aboutdecltypein C++, and now less excited aboutdecltypebecause it seems like simply putting back a useful feature first found in C and taken out of C++ for unknown reasons.Bear in mind that
typeofis a GNU extension and not actually part of standard C. I’m not a C++ person, but from a cursory search it appears thatdecltypeis, in contrast, officially standardized.