Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Personally my biggest complain from Rust is that I wish it was more readable. I've seen function signatures that seemed straight out of C++.

There is always a trade-off. You really cannot provide enough information for the compiler without the current signatures. There is a certain point where you cannot compress the information without losing some features.



It's always an option to create type aliases, but there's a bit of "robbing Peter to pay Paul" happening when you do that.

You make the signature shorter but also take away the ability for the programmer to quickly understand what code is doing.


I fully believe you, I don't know what the solution would be either.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: