They are NOT cool. They're a major pain in the ass because they're a textual replacement instead of manipulating token streams or at the very leas being values and functions called at compile-time.
They might seem temporarily simpler, but we have constexpr for a reason
View all comments
Show parent comment
6
u/creeper6530 [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Apr 09 '26
They are NOT cool. They're a major pain in the ass because they're a textual replacement instead of manipulating token streams or at the very leas being values and functions called at compile-time.
They might seem temporarily simpler, but we have
constexprfor a reason