3 ms·
People don't use these other schemes because they are clumsy, inconvenient, look bad, and have never caught on. With it as part of the syntax, it becomes natur
by WalterBright 5y ago
People don't use these other schemes because they are clumsy, inconvenient, look bad, and have never caught on.
With it as part of the syntax, it becomes natural to use them. I'm not making this up, it is based on extensive experience.
The runtime overflow checks can be turned on and off with a compiler switch, so it becomes trivial to see what performance effect it actually has. Critical loops can be coded with ordinary pointers as necessary. For the rest, the performance effect is not measurable.
Again, this is from experience, not supposition.