« first day (2573 days earlier)      last day (915 days later) » 

6:51 AM
 
 
1 hour later…
7:54 AM
incredile how some old function of rust age badly doc.rust-lang.org/std/vec/struct.Vec.html#method.remove
 
 
1 hour later…
9:17 AM
> Could you avoid opening an issue then immediately opening a PR for an architecture change or new feature without waiting for my opinion? This was not necessary
????????????????????????????????????????????????????????????????????????????
 
 
3 hours later…
12:31 PM
@Stargateur because it should return an option ?
 
@DenysSéguret or result but yes
even if use remove should be avoided if we choice to have it at least it should have a nice api
 
Yeah, I've always thought it looked bad. I guess somebody thought it would be more performant this way
 
well it's from 2015 rust
like box::new that doesn't return a result :p
hope we will have a Rust 2
 
I'd like faillible allocations too, but this looks harder to devise that remove
 
"devise that remove" ?
 
12:41 PM
I mean it's easy to fix remove, the changes in user code wouldn't be huge. But making the allocations faillible would have a lot of consequences on usability and must be carefully designed
:s/that/than
 
well mostly the same
user will need to add unwrap everywhere
that more or less what it is un practice with panic
 
This wouldn't make it better. What's needed is a way to correctly react to low memory condition
 
well oom can abort too
@DenysSéguret well, user will need to rework the code
when you choice to ignore error that your fault
when your api can fail and your doesn't return result or option that your fault
API that can't fail count: Close to zero
 
 
8 hours later…
9:09 PM
Just notice that Vec is not in std::collections
my disappointment is immeasurable and my day is ruined
 
 
2 hours later…
11:31 PM
@Stargateur Reading the title and commenting "the answer is in the docs" without fully understanding the question pretty toxic behavior IMO.
 
@kmdreko like what you are doing
At least I'm the only one understand the real problem of the OP
@kmdreko so you just ping me to insult me again ?
 
You think calling out toxicity is toxic?
OP does not ask how to remove the last character of a string, OP asks why that combination of calls doesn't work. It looks purely academic IMHO. A comment directing them to stackoverflow.com/questions/65976432/… or something would be appropriate but I don't see why an answer has to address it if the OP doesn't ask for it.
 
Ok let's bet
 
That's fine even if you're right, my issue isn't with OP asking potentially the wrong question. My issue is with your "the answer is in the docs" comment, which I don't think is ever appropriate.
 
let's agree to disagree, comment are temporary anyway, just flag it if you are unhappy with one
call out and insult people when you think something insult someone is toxic too
cause you force your morality on me
 
11:41 PM
I did not insult you at all, I only said your comment was uncalled for.
 
call it like you want that still the same thing of what you blame me about
 

« first day (2573 days earlier)      last day (915 days later) »