Hacker News new | ask | show | jobs
by benibela 2017 days ago
And that would be faster than the Pascal version

But it is unsafe. Someone might mistype * * s as *s and then bad things happen.

Pascal strings are basically memory safe. With range checking enabled, you can write whatever and it can only access characters in the string.

Ofc, then people disable the range checking in release builds to make it faster