ranting and raving about the need for data structures
Commander Zot
no at no.no
Tue Oct 10 15:20:53 UTC 2023
On Tuesday, 10 October 2023 at 14:51:56 UTC, monkyyy wrote:
> On Tuesday, 10 October 2023 at 09:48:01 UTC, Commander Zot
> wrote:
>> On Monday, 9 October 2023 at 19:05:43 UTC, monkyyy wrote:
>>> chat log from discord
>>> https://imgur.com/a/9RH23Y1 (ocr didnt work)
>>>
>>> [...]
>>
>> 99.9% of cases just just be an array for performance reasons,
>> and if you actually need something else, then you most likely
>> need a handcrafted solution anyway.
>
> There are abstractions on top of static arrays as well, its
> absurd there isn't a nice circular buffer
because even for a circular buffer a single solution is not
enough.
you have typed vs unpyped, known length for elements vs dynamic
length, single/multi producer, single/multi consumer, threat
safety, ...
More information about the Digitalmars-d
mailing list