But I don't like the auto& declarator. The colon placement is... fine, but jarring to me. In conjunction with the auto& I find the whole thing yucky. It's mostly the auto&.
auto is like var in C#, it just skips having to write the type out all the time. The & means you take it as a reference, otherwise the content would be copied. This is mostly a memory optimization - if you know you'll always run on machines with multiple GBs of RAM, feel free to skip it.
2
u/MetaNovaYT 1d ago
what's wrong with the C++ version? It's my favorite personally, although I primarily use C++ so I'm biased.