3 ms·
> I object to the assertion that VLAs are bad! They are an improvement to function signatures. The main issue is that they are not restricted to that. They wen
by qalmakka 5y ago
> I object to the assertion that VLAs are bad! They are an improvement to function signatures.
The main issue is that they are not restricted to that. They went overboard and basically made alloca() part of the language, causing all kinds of bugs when a newbie (or a senior, too) mistakenly uses variables instead of defines for an array size.
If they were just an annotation, it would not have been complaining, even though they would still remain quite unusable in practice due to C++ not supporting them (that's why they're seldom used in public headers).