« first day (2085 days earlier)      last day (1390 days later) » 

11:28 AM
@E_net4isnotcute What were they? The comment is gone now...
 
@PeterHall Great! Don't worry, you would know when to flag if you saw it. :)
 
12:28 PM
@Shepmaster: I'm not quite sure about stackoverflow.com/questions/62637801/… being a duplicate of stackoverflow.com/questions/26665471/…. It's linked, certainly, but there's something special about return: in most languages return must be a statement.
 
wow, straight reopen, eh
cold hearted
Ah, it's because you were answering, I see.
Conflict of interest
 
Great, now we need another Mjölnir.
 
Yes, I think the crux of the confusion is really that return is not a statement.
 
Well, MatthieuM. can still re-close if they see fit.
 
It's not just that you can omit return at the end of a function.
 
12:37 PM
> A return statement will evaluate to !, AKA the never type.
 
(And yes, I had to reopen to be able to post my answer, as adding an answer to a closed question is impossible... which is sensible, but annoying)
 
that's in the proposed dupe
which is the key answer
 
The fact that return used as a statement evaluates to ! still doesn't convey that return is an expression in Rust.
 
@E_net4isnotcute Did someone ask for a dupe-hammer?
 
Once you know it's an expression evaluating to !, then of course it makes sense that the semi-colon is optional.
But as you long as you have the misconception that return must be a statement, then it's just weird.
 
 
4 hours later…
4:50 PM
@E_net4isnotcute cute
 
@Shepmaster >:|
That does not merit a star.
 
 
1 hour later…
6:01 PM
Bah
 
6:46 PM
I need to create some PTYs in a Linux env and was looking at this question[1] and noticed they `use nix::pty::openpty;`, but `rustc` doesn't seem to know what that is and I haven't seen that namespace in the docs. There's no `Cargo.toml` listed in the question, but it's from 4 months ago, so it's fairly recent. If I need to work with PTYs, do IPC (e.g. `fork`, `execvp`, etc), where should I look?

[1] https://stackoverflow.com/questions/60367318/how-do-you-write-to-a-pty-master-rust
 
> There's no Cargo.toml listed in the question
hahahahahaha
I've been fighting an unending battle for 5 years begging people to provide complete questions
 
¯_(ツ)_/¯
 
Maybe questions with the rust tag should get a prompt asking for Cargo.toml lol
Thanks, I'll look into it.
 

« first day (2085 days earlier)      last day (1390 days later) »