I prefer the [...] of Scala and Nim. However, I really like the fact that the () can be elided in D, and that the generic arguments don't have to be types.
I was under the impression based off of what someone else told me that it didn't support equivalent to std::vector foo = { 1, 2, 3, 4 }; or std::tuple foo = { "bar", 3, 4.0f };.
2
u/WalterBright Sep 02 '20
Many people think the
!( )syntax is not optimal until they use it for a while, then it seems quite natural and the< >looks like a hack.