@MatRopert@dotPavlov `Append` isn't part of List. It's a Linq extension method used with iterators. It allows you to iterate over 2 combined lists without moving/copying either of the lists data. AddRange is what you expected Append to be.
@cspulsar@ptrschmdtnlsn I get to choose? So I, as the dev, can choose to not use crates if I don't like their dependencies? Or I can choose to turn off features I don't need or want in a crate? Sounds like an eco-system that is very friendly to developer agency.
@cspulsar@ptrschmdtnlsn It's a freedom thing, not a culture thing. Authors are free to define their dependencies how they like, there's no way to stop or change that. Crates like tokio take the opposite approach of features off-by-default, why is that not viewed as a sign of "rust culture"?
@ptrschmdtnlsn The glfw crate setup would make that annoying, agreed. I think it's unfair, however to use one crate's lack of flexibility as a problem with rust or it's "culture". Its not an accepted idiomatic approach to dependencies. Look at tokio, all features default to off.
@cspulsar@ptrschmdtnlsn The default features are determined by the crate author, not the rust language. If minimal dependencies are a top priority for a dev they should be diligent in selecting what crate features they use.
@paramitanoia@ssdfffffffff53 a. I've never seen the need for this.
b. It's more complicated.
Option<Box<dyn Future<Output = Result<T,E>>>>
Future isn't generic over `T`, its implemented over Associtated Type `Output`. Since it's a trait it's unsized which can't be used Option, hence the need to Box it.
@tqbf Trees aren't annoying in rust for the sake of being annoying, it's a results of it's safety assurances. When it builds successfully there are whole classes of errors that are provably not going to happen. There are other parts of rust that make things easier than other langs.
@tqbf Is that fair? Are you genuinely creating that many specialized tree structures where you can't write reusable tree code? Even your own crate if you don't want the dependency? Try not to let it's roughest edges take too much away from some of its beauty.
@yalligatorgar Why is this voted on? Can't people do this individually? It's political grandstanding. Read the bill. Forcing people that disagreed with his ideology to "honor" it, tied to condemning the violence. It's a false equivalency. You can condemn the violence and not honor his legacy.
@FFmpeg Interestingly, GCC 4.7 produces your exact comparison output. Wasn't able to find anything specific as to why it changed other than the loop unrolling changes that went out with 4.8, nor is there any obvious flags to turn off to return to previous behavior.
@NTerryEllis Your article mis-represents the HRC Report it links to. You state "In 2023, more than 525 anti-LGBTQ bills were passed in 41 states," Infact the document linked in your article states 525 were *introduced* with 70 passed as of press time.