|
|
|
|
|
by tialaramex
8 days ago
|
|
Yes, the ergonomics are just better If you Vec::with_capacity(5) both you and a reviewer know what's going on here - this is clearly a Vec with capacity 5. When you call a C++ constructor with 5 as the parameter, both you and the reviewer had better be sure what that 5 means. |
|