|
|
|
|
|
by galkk
645 days ago
|
|
The problem in this case is not the potential performance bottleneck, but the bad ergonomics for a dev, that leads to the complain. The rest is consequence. And to me it looks like pure language/stdlib problem. Like for me, the proposed solution looks ugly both from syntax and what is going on behind curtains perspective. I would rather not to code in a language that makes/tolerates decisions like that. |
|
Personally I’d just reverse the array and then iterate it. It’s going to make about zero difference.
Every language has its sharp edges.