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

> You can't tell that something is borrowed until you try to compile your program. (Aside: I wish Rust IDEs made this state visible while programming!)

I am not sure what the OP is using, but with LSP I do get the error message in my editor (nvim) before any compiling (though am pretty sure some checking in happening in the background).

> Compile-time Capabilities

Not sure how this makes any sense when Rust compiles to multiple targets. Should all libraries become aware of all the "capabilities" out there. Also, this already can be implemented using features and keep things minimal.

> Comptime

I can't make sense of what the OP issue is here.

> Make if-let expressions support logical AND. Its so simple, so obvious, and so useful. This should work: if let Some(x) = some_var && some_expr { }

The example makes no sense.



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

Search: