3 ms·
When he said "anyone" he meant "almost anyone". You're an outlier if you use `restrict` regularly. I checked on grep.app, there are 10k results for `restrict`
by IshKebab 5y ago
When he said "anyone" he meant "almost anyone". You're an outlier if you use `restrict` regularly.
I checked on grep.app, there are 10k results for `restrict` for C code, compared to 700k for `struct` (I know they're not directly comparable but that gives an idea.
- jonathrg 5y agoThat seems like about the right proportion to me - struct solves a much more common problem than restrict does. And to be fair, it is a lesser known feature. But user-the-name is implying that restrict is somehow difficult to use or understand, which I don't agree with at all.