Re:Classes vs. Structs in .NET. How not to teach about perfo...
by diarrhea on Saturday November 04, 2023 @03:55PM
(#38144538)
Good point! I remember that being a lint in Visual Studio. A very valid one.
In contrast, in Python, initial use exhausts generators. Subsequent iterations turns up empty. A gotcha, but also a way to highlight misuse, as it should show up in testing.
In contrast, in Python, initial use exhausts generators. Subsequent iterations turns up empty. A gotcha, but also a way to highlight misuse, as it should show up in testing.