Hacker News new | ask | show | jobs
by srgpqt 1086 days ago
Indeed, even C has caught up!

#define let __auto_type

1 comments

Wow, I learn something new every day!

https://gcc.gnu.org/onlinedocs/gcc/Typeof.html

Having learned (old) C in college and taking a closer look at it lately, I was surprised how much you can make it look “modern”, what with _Generic, wchar_t, booleans and even this __auto_type.

It seems like with a couple #define macros and some discipline you can make it look and behave more ergonomic.