`drop` not `opSlice` should be in the range api
monkyyy
crazymonkyyy at gmail.com
Fri Jan 10 21:21:10 UTC 2025
On Friday, 10 January 2025 at 21:07:53 UTC, Dukc wrote:
> On Friday, 10 January 2025 at 18:46:33 UTC, monkyyy wrote:
>> Theres a reason allot of code uses .array as glue
>
> It's as it should be. Most of the time you're dealing with
> relatively small data amounts, so your code doesn't need to be
> fast. Nothing wrong with unoptimised code.
>
> The result is you can quickly make a good guess whether the
> code you're reading is efficient for big ranges. Lost of
> unnecessary `.array`s, `.drop`s and `.take`s means it's
> probably not.
users code should do the easiest thing that gets the task done
lib code should be more ambitious and Im discussing range api
design of my lib code
More information about the Digitalmars-d
mailing list