« first day (1437 days earlier)      last day (2056 days later) » 

10:32 AM
I answered a rust question!
I could've done it way earlier but you guys were always faster :P
 
@orlp Was that your first one?
 
think so not sure
nah, my 3rd
 
11:01 AM
only 17 more before you can get a bronze badge
 
11:39 AM
I've wasted enough time on this decision now
LinkedSlotMap it is
guys I have a really strange problem
if I type cargo doc --open, the documentation renders wtih a really ugly font
this does not change
until I press the settings button (cogwheel in top right corner)
and then go back to the main page
it's as if some web font doesn't get loaded
and only that fixes it
I'm using firefox
it's fixed if I set security.fileuri.strict_origin_policy false in the Firefox settings
11 mins ago, by orlp
LinkedSlotMap it is
my conviction has already failed
 
 
4 hours later…
4:06 PM
I'm hoping someone will tell me if I got the variance wrong in this edit.
I don't remember why I thought it was invariant to start with so I am a little apprehensive about changing it to contravariant now.
 
 
1 hour later…
5:25 PM
@trentcl I think the revised version is correct: play.rust-lang.org/…
If P would be &'a mut &'a i32 in the example then of course F would be invariant in P, but by default it is contravariant with a given PhantomData<fn(P)> and variant with a given PhantomData<P>
No, even with &'a mut &'a i32 for P type F would not be invariant in P, because the subtyping relationship of P would be not true therefore the left arm of the implication of the variance/contravariance definition is false and therefore the whole implication is true.
 
@Calculator Thanks, yes, this does appear to support it.
I think I was confused because traits are invariant, and I was thinking that having a member-of-a-type-that-implements-a-trait would interfere...
 
 
1 hour later…
7:03 PM
Hullo friends. Carol and I have been working on a Rust video series. If you'd like to purchase it, You can get 50% off through September 27 using the code vlrust1p
2
 
@Shepmaster I watched the intro before you posted here. Great work, you two! :+1:
 
7:34 PM
@Shepmaster look amazing
 
Thanks! Carol puts together all the visuals and I stick it into the movie editor; we take turns voicing it.
 
 
3 hours later…
10:37 PM
@Shepmaster is the text transcript auto-generated?
This paragraph break is weird
 
Hmm. We certainly didn't provide the transcript, so I'm guessing it is. Wonder what we can do about that...
 
hm
it actually gets worse after that example
The highlighted part is where you take over talking. But the transcript makes it look like the same weird sentence
Also can I pay just for the chapter about how to make Rust easy like Java?
 
@PeterHall yes but that chapter is an hourly rate for me or Carol ;-)
 
10:54 PM
@Shepmaster rooo I was like "they even match the script with the voice amazing" ;)
 
If it is automated, I wonder why Rust is sometimes capitalized and sometimes not
 
so a human do the work but there is some error, strange
unless they think the video could change there is no reason to not be accurate directly
unless they have process has 1. do it quicky 2. do it clear when all video are available
 
11:15 PM
@Shepmaster last time I close this one stackoverflow.com/questions/52396802/…
Do you have any better duplicate ?
because as stackoverflow.com/questions/51936299/… is also closed for a complete different reason
 
Yeah, this new one doesn't seem like a heterogeneous collection
 
the questions doesn't match at all but answer does ^^
 
@Stargateur You do mean to link to "How do I define a type hierarchy using Rust enumerations?" right?
 
why not
I don't know
but currently I don't like close a question to an other closed question
 
I mean, you are asking about a good duplicate for "define a type hierarchy", right?
 
11:22 PM
no
 
Then I am confused about what your question is :-)
@Stargateur Why did you link to stackoverflow.com/questions/52434518/… ?
 
obviously the OP didn't know that Animal in struct Animal and enum { Animal } are not the same type
 
Oh, I see why you are making the connection
Because both OPs assume that enum Foo { Bar } maps Bar to struct Bar
?
 
yep
 
I think that the title indicates that they have a specific question. They attempted to solve that question with the code presented, which indicates a flaw in their mental model.
The questions you've linked are just about the mental model part.
 
11:26 PM
so this new question need a specific answer
 
But not answering the question.
@Stargateur right!
So, if you can find a duplicate for the title, that would be great, and then also say "btw, your attempt is no good because of x,y,z (links)"
Or perhaps there is no dupe and you answer it directly, and then address the mental model
 

« first day (1437 days earlier)      last day (2056 days later) »