3 ms·
1. The new declaration style might look a bit strange to people used to the old style. But one could argue that using it will make it more consistent for the ca
by fafner 12y ago
1. The new declaration style might look a bit strange to people used to the old style. But one could argue that using it will make it more consistent for the cases when you really do need to use it. Anyway it's just a matter of style. Not really a need to discuss it IMO.
2. Some people argue that
auto v = T{x};
should be the new way of defining variables with types. The use of {}-initialization should prevent unnecessary narrowing. In this case () has to be used because a specific ctor is to be called. But using that style would make it more consistent with the rest.