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

>Who like to read the following function declaration?(just borrowed as example):

> fn foo<'a, 'b>(x: &'a str, y: &'b str) -> &'a str

Anybody who cares about the validity of pointers would like to read that. It very explicitly tells you what must be true of the arguments for them to be valid and for how long the result will be valid.

In general, you seem to be over-valuing conciseness. If you think conciseness is more important than memory safety, feel free to not use Rust. But frankly, it is trivial to make a language more concise. That's not a hard problem whatsoever.



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

Search: