You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no reason to have the potentially unoptimizable inefficiency in vec!.
It's impossible to reoder side-effects (which is why we want placement syntax), so vec![expressions, containing, side, effects] will end up in a copy from the stack to the heap.
I guess it's not as bad as I thought given that vec![x; N] goes through a more optimal route so you can't cause a stack overflow with it.