« first day (888 days earlier)      last day (2600 days later) » 

6:24 AM
@Shepmaster Your playground seems to be broken :(
 
 
6 hours later…
11:57 AM
@SimonWhitehead Can you expand on in which way? Compiling some code appears to respond appropriately
Lot of new faces in the room today. Hello friends
 
12:41 PM
oh sorry @Shepmaster I thought I did
I originally typed "Page doesn't load"
didn't come through I guess :/
I couldn't even load the editor earlier
works now :/
nevermind then!
I recall the error was a javascript one
and it occurred in that manifest bundle you have
 
 
3 hours later…
4:02 PM
This is an interesting concern. Have any of you folks run Cargo tests over Valgrind?
 
 
3 hours later…
6:59 PM
@E_net4 not in an automated fashion
 
Tricky, eh?
 
 
3 hours later…
10:02 PM
What is the go-to duplicate for trying to return a reference when it should be returned by value?
 
10:33 PM
@E_net4 Couldn't find one so you answered, eh?
 
@Shepmaster Well, yeah...
 
3
Q: How do I return a reference from a closure?

syakhmiI am a Rust newbie, and don't understand all the rules for lifetime elision and inference. I can't seem to get returning a reference into an argument from a closure to work, and the errors don't help much for someone with my amount of knowledge. I can use a proper function with lifetime annotati...

seems promising
I tend to favor
7
Q: Is there any way to return a reference to a variable created in a function?

NexI want to write a program that will write a file in 2 steps. It is likely that the file may not exist before the program is run. The filename is fixed. The problem is that OpenOptions.new().write() can fail. In that case, I want to call a custom function trycreate(). The idea is to create the fi...

 
@Shepmaster The latter is good indeed.
The former doesn't even address the main issue.
Man, search result ranking is difficult.
 
Which is why I edit titles as I find things like the first one
@E_net4 nice sleuthing for the nanomsg
 
@Shepmaster :+1:
The question did smell like a GitHub issue from the beginning. Anyway, I'm glad this resolved into yet another OSS project fix.
Oh, and thanks for enriching my vocabulary with "sleuthing".
Now, is there a proposal for something like where !Sized?
Hey, who's rebelling against Shep?
 
10:52 PM
@E_net4 I think there's a waiting list for that club
 
Maybe whoever voted to reopen that one is the leader.
Well, maybe there's a point here.
 
I've been wrong before and will be again
 
So what should we do now..
 
I user87q24654675 and I have comments on the Q
you would be affected, so feel free to chime in
 
Well, I sort of understand, and I had that worry when writing my answer. The main idea is still there...
Regardless, we should probably invite the OP to be more specific and clear ambiguities. Otherwise we might be making changes that drift away from the original intent.
Can you insta-reopen that question, and maybe close it again once we're sure it's a reasonable thing to do?
 
11:07 PM
@E_net4 Nope. I can open, then I'm locked out
 
:s
 
and would have to get one of the other gold badgers or the community vote
The thing is, OP is going to +1 and likely accept the other answer
because it solves their longer problem
 
I'm not too bothered about it. It's not that much of a great question anyway.
In another subject, I was wondering about the where !Sized thing because I'm thinking whether it would be possible for a type or a trait to have an object safe variant of a method.
With the same name, that is.
fn send_msg<M: AsRef<[u8]>>(&mut self, msg: M) -> Result<()> where Sized;
fn send_msg(&mut self, msg: &[u8]) -> Result<()> where !Sized;
 
@E_net4 negative trait bounds come up every so often
but this seems beyond that
 
A bit, yeah. I was also looking for that RFC but failed miserably.
 
11:13 PM
because it's specialization on negative trait bounds
and changing the argument type seems really too far out
 
Far out, possibly. But would it be possible without effing the language up? :P
 
11:35 PM
@E_net4 I don't know. That's in the hard category for me. The deep-down type theory stuff hurts my brain
 
11:49 PM
It seems I became a top asker in the Rust tag for the last 30 days by asking a single question. :>
 

« first day (888 days earlier)      last day (2600 days later) »