|
|
|
|
|
by Guvante
1669 days ago
|
|
Except C++ didn't learn that operator overloading is bad. C++ learned that operator overloading for everything was bad. The language kind of put itself into a corner when what C# calls `MoveNext` is called `++` (with two variants of course) and what C# calls `Current` is called `*`. Taking what mathematically worked for iterating an array and taking it piecemeal to define your syntax is the kind of operator overloading that is a bad idea. |
|