4 ms·
I'm a rust newbie, but I have to disagree. Your "horror example" is actually very readable for most programmers familiar with either Java, C# or c++, I think.
by gnud 8y ago
I'm a rust newbie, but I have to disagree.
Your "horror example" is actually very readable for most programmers familiar with either Java, C# or c++, I think. In java or C# it would be something like
T largest<T>(T[] list)
The major difference being the reference syntax in rust, but that's the price of explicit ownership/no GC.
I love the fact that it's obvious where macros are being used.
_, => and () are originally from ML, so I know it from my university days, but these days you also find some or all of them in C#, Java, Kotlin, ES6. So a lot of programmers have already been exposed to them.