HackerTrans
TopNewTrendsCommentsPastAskShowJobs

snthsnth

no profile record

comments

snthsnth
·10년 전·discuss
Things I'd like to see

static lifetime compound literals. I don't see any reason not to be able to get the same effect as string literals for other types like:

return (static int const []){1, 2, 3};

Disallowing branch-predicted values for relaxed atomic operations. I think c++ did this and it seems the sane way to go.

Binary literals and binary printf format specifier. It would just occasionally be nice compared to hex.

countof macro for arrays. I don't even care if it checked for non-array type errors, it would just be nice for it to be standard.

Statement expressions and function literals would be nice, but I don't feel strongly about it.