Comment

Comment by tempsolution

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.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton