Hacker News new | ask | show | jobs
by tempsolution 2108 days ago
Being able to read is helpful. They are "zero cost abstractions". Yes, they are not zero cost, big surprise (I thought they wouldn't produce assembly instructions). A pointer is an indirect reference. But the abstraction around them is zero cost:

i.e. there is no way to end up with faster code that does the same thing, without using the abstraction.

This is the very definition of zero cost abstractions.