|
|
|
|
|
by variaga
2183 days ago
|
|
I'm sure it makes sense to someone well-versed in Rust syntax, but to an outsider like me that code looks like the kind of "line noise" that made me switch from perl to python. The procedural 'if x.len == 3 and x[0] == x[1]' seems a lot clearer as to what is actually being tested. |
|
In Rust, you'd write something more like: