Fun with OpenAI

Walter Bright newshound2 at digitalmars.com
Tue Dec 20 08:06:49 UTC 2022


On 12/19/2022 7:53 PM, Steven Schveighoffer wrote:
>>      // Create an array with a capacity equal to the length of the string
>>      auto substrings = array!string(s.length);
> 
> Not very correct ;)

But it *looks* seductively plausible, yet has insidious errors.

I predict that using AI generated code is going to result in strange problems.



More information about the Digitalmars-d mailing list