4 ms·
> I wish rust were smart enough to make the functions put the values directly in the caller's stack frame. That's one reason why macros exist. > I thought may
by stymaar 10y ago
> I wish rust were smart enough to make the functions put the values directly in the caller's stack frame.
That's one reason why macros exist.
> I thought maybe macros would help here, since there is no new stack frame, but they still introduce a new scope that limits the lifetime of the temporary variables.
Why can't you just "return" the variables you need later on ?