if (0..=10).contains(&5) {
I assume we are taking a ref to "5" (and not passing by value) because "Range" is a generic type that might be too big to want to copy (or it may not be copyable at all). But taking a reference to a number for a simple operation like this feels... weird. It makes me worry that Rust is going to be passing around pointers to some stack-allocated "5", but I hope that Rust is actually much smarter than that?Announcing Rust 1.35.0
31–40 of 111 posts
Re: Announcing Rust 1.35.0
#32Coming from C/C++. Is working with the online package manager (Cargo?) mandatory? Or is there a sustainable way of working/developing with Rust while completely offline? I'd like to start a project, manually import libraries (downloaded manually, no dependency hell), read documentation, etc. Is it possible?
Re: Announcing Rust 1.35.0
#33Coming from C/C++. Is working with the online package manager (Cargo?) mandatory? Or is there a sustainable way of working/developing with Rust while completely offline? I'd like to start a project, manually import libraries (downloaded manually, no dependency hell), read documentation, etc. Is it possible?
Then, if using cargo which I totally would, run ‘cargo doc —open’ to see api documentation for your project as well as your projects dependencies both direct and indirect.
All from disk!
Re: Announcing Rust 1.35.0
#34Earlier quoted context omitted.
Does that mean it only needs internet for the first build. And then, subsequent builds won’t need internet connection (if I don’t add new dependencies, of course), kind of like Maven?
No, you can do everything, including the first build, offline.
Re: Announcing Rust 1.35.0
#35Coming from C++, this always throws me a bit: if (0..=10).contains(&5) { I assume we are taking a ref to "5" (and not passing by value) because "Range" is a generic type that might be too big to want to copy (or it may not be copyable at all). But taking a reference to a number for a simple operation like this feels... weird. It makes me worry that Rust is going to be passing around pointers to some stack-allocated "…
Re: Announcing Rust 1.35.0
#36I no longer care about Rust anymore because of their lang team's await syntax decision process. It seems the team only cares about satisfying themselves rather than listening to the community's concern. Whenever users spoke about problems proposed by the team, they simply dismissed them saying the concern doesn't contain any new information. With this lang team, I think Rust is going to die quickly. It doesn't worth…
For anyone playing along at home, when the async/await RFC was accepted, it left the final syntax of "await" to be decided before stabilization. That was a little over a year ago. There was some debate, but it's been under pretty intense debate since at least November of last year. This has been the most discussed aspect of Rust ever. The tracking issue has 296 comments. There have been numerous threads on the intern…
I still remember the lifetime syntax (&'a T) discussion. await syntax discussion felt really similar.
Re: Announcing Rust 1.35.0
#37Coming from C/C++. Is working with the online package manager (Cargo?) mandatory? Or is there a sustainable way of working/developing with Rust while completely offline? I'd like to start a project, manually import libraries (downloaded manually, no dependency hell), read documentation, etc. Is it possible?
Re: Announcing Rust 1.35.0
#38Earlier quoted context omitted.
No, you can do everything, including the first build, offline.
Sorry, I should’ve been clearer: I need cargo to be online the 1st time so that it could resolve my dependencies for me online the 1st time because I don’t want to setup local repos and stuff. Thanks
Re: Announcing Rust 1.35.0
#39[0] https://www.reddit.com/r/rust/comments/brtec1/rustup_1183_re...
Re: Announcing Rust 1.35.0
#40I no longer care about Rust anymore because of their lang team's await syntax decision process. It seems the team only cares about satisfying themselves rather than listening to the community's concern. Whenever users spoke about problems proposed by the team, they simply dismissed them saying the concern doesn't contain any new information. With this lang team, I think Rust is going to die quickly. It doesn't worth…
You do you. The reality was that _every_ time some discussion about the async syntax came up _every_ proposal and concern was uttered again. It's not that any direction was particularly more popular in the community than any other one, so it's not that the lang team decided against what the community wanted. The only thing that seemed certain in the end that all options have some downsides. I'm very happy with the Ru…