reference icon indicating copy to clipboard operation
reference copied to clipboard

Document all interesting/relevant zero cost abstractions

Open Scripter17 opened this issue 2 years ago • 0 comments

I've been trying to research what zero cost abstractions Rust uses and I cannot find any meaningful info on anything other than iterators and generics. I've checked the main Rust repository, the Rust book and its repository, the reference and its repository, and even third party articles about Rust. I might just be stupid but there seems to be little if any concrete information on what is and is not zero cost

I think it would be very worthwhile to have a comprehensive list of (at least the interesting) zero cost abstractions (as well as when they don't apply) both to satisfy curiosity and to reassure people who come from languages where abstractions are punished

Scripter17 avatar Apr 30 '23 09:04 Scripter17