4 ms·
Anything with templates, type traits, especially when nested. (The kind of spew you get on an compilation error). Even template< typename T > struct foo<T,
by kingaillas 4y ago
Anything with templates, type traits, especially when nested. (The kind of spew you get on an compilation error).
Even
template< typename T >
struct foo<T, std::void_t<decltype(++std::declval<T&>() )>>
: std::true_type { };
looks terrible and that's just basic.
- masklinn 4y agoI still wish Rust had a way to express decltype tho. `impl Trait` doesn't always work, and when it doesn't it's quite frustrating.
- estebank 4y agoWhat limitation do you encounter with `impl Trait`? They might be removed by `type Alias = impl Trait;` soon. https://rust-lang.github.io/rfcs/2515-type_alias_impl_trait.html https://rust-lang.github.io/rfcs/2515-type_alias_impl_trait....
- marcosdumay 4y agoYou will notice that this is almost valid Rust. (Rust is a very small bit better, not enough to matter.) In fact, a lot of what the Rust syntax ugly was taken from C++, and it took most of what makes C++ ugly. So the entire discussion is just amusing.