logoalt Hacker News

repelsteeltjetoday at 9:20 AM1 replyview on HN

> [...] That's not a big problem [...]

Depends somewhat on your expectations, I suppose. Compared to Python, Java, sure, but Rust off course strives to offer "zero-cost" high level concepts.

I think the critique is in the same realm of C++'s std::function. Convenience, sure, but far from zero-cost.


Replies

pjmlptoday at 10:27 AM

To the point it got replaced by std::function_ref() in C++26.

show 1 reply