https://issues.dlang.org/show_bug.cgi?id=10930
ZombineDev <petar.p.ki...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |petar.p.ki...@gmail.com --- Comment #5 from ZombineDev <petar.p.ki...@gmail.com> --- The main issue with `replaceInPlace(arr, 1, 2, [2])` is that: 1. The simple usage requires a dynamic allocation for the `[2]` array. The user could use a separate static array and pass a slice to it, or use `only(2)`, but it's not convenient for such simple use case 2. A `replaceInPlace` overload takes a single element, instead of a range can be made much faster by using specialized SIMD instructions, which is worth considering --