« first day (927 days earlier)      last day (2554 days later) » 

2:22 AM
> Pattern matching inside of struct
not a terrible question
but not a useful title
soliciting suggestions
 
 
7 hours later…
@LukasKalbertodt More like Historical SO vs Modern SO. :P
 
@E_net4 Or "overrun by beginners" vs. "no hits from google" :P
 
9:37 AM
Gonna ask a few questions to bring some action to [rust] while the americans are sleeping :P
 
9:56 AM
Well, asking questions one knows the answer to without answering them is probably a bad idea tho :/
 
10:29 AM
@LukasKalbertodt Here's how I do it: If you're sure enough of the answer, then either leave it be or make a Q/A pair.
The latter choice is trickier unless you are sure that it isn't a duplicate or something fairly trivial.
 
@E_net4 Well, I answered it now. Should have done so directly when asking the question. I just often feel like the community ignores self answered questions as "oh yeah, nice, they added this thing and it might be nice, but not interesting for me" :P
 
@LukasKalbertodt And you are right to think of it that way, unless it's a really good pair. ;P
Not to mention that I've seen Shep doing this just to have a rendez-vous point for duplicates.
 
10:53 AM
@E_net4 Which is a good idea IMO
 
Aye.
 
A lot of reddit activity on the recent announcment post. All in comparison. And this is the first time the title contains a "hurray" emoji as well as the first time Carol posting it. A coincidence?!?
 
11:47 AM
Methinks not. :P
10cents in da Hous
@LukasKalbertodt Why do you have a link in your question to the same question?
 
@E_net4 I don't... it's lexical <-> syntactical, no?
 
@LukasKalbertodt congrats on your first gold badge community reversal
 
@Shepmaster Wut? 0_o
 
@Shepmaster Damn :(
 
12:00 PM
@LukasKalbertodt "I couldn't copy and paste the code from A to B, so obviously it doesn't work"
@LukasKalbertodt you wanna answer this one?
 
@Shepmaster so you agree, it should have been marked as duplicate?
 
@LukasKalbertodt I'm on the edge
 
Nah, I don't think I'm interested in answering that :P
 
Because yes
but the target is focused on solving that OPs question
which evidently confused this OP
And I couldn't figure out how to edit the target to be more general
I'm thinking I'll downvote as it's not useful, then answer starting with a link to the other
 
Mh ok, yeah I see. But we expected more effort to transfer one solution to a slightly different problem from other OPs before, I think
@Shepmaster Idea about answering sounds good to me
 
12:04 PM
Yep
Nah, I changed my mind
I'm gonna tweak the target a bit and re-close
 
@LukasKalbertodt what's with your to nearly identical questions that reference each other?
 
haha
I hate to request upvotes, but I'd like my two comments to stand out among the others
Your function needs to be fn bar<T>(x: T) -> u8 {Shepmaster 14 hours ago
People voting to reopen — please note that the linked duplicate has two parts to the answer: one generic solution which applies here (normal type name shadowing) and one specific which does not. That does not mean that the questions are not duplicates as the generic answer information is enough to solve this question. — Shepmaster 57 secs ago
@PeterHall lexical vs syntax
 
12:21 PM
Hm. I feel like a good answer could cover both anyway
 
@PeterHall which Q do you think would be better suited to house such an answer?
@LukasKalbertodt thank you for all the editing <3
 
@Shepmaster Yeah, some morning procrastination :/
@PeterHall More questions == more upduhts, wub wub
 
@LukasKalbertodt Watch it, that might backfire into your sinking boats.
 
@Shepmaster I'm not sure. I'm guessing the reason someone would find these questions useful is because they are trying to parse Rust code and wants to make sure that they are choosing a suitable parser generator or tokenise before they begin.
And for that, I think you'd need the answers to both questions
 
@PeterHall haha, we were talking about different questions ;-) I was talking about the <u8> one, you are talking about Lukas'. Don't mind me!
 
12:29 PM
@Shepmaster More coffee? ;P
 
@E_net4 I don't partake, but I think both readings are reasonable. @PeterHall replied after my request for upvotes / comment talking about 2 questions and didn't use the reply button ;-)
besides, everything revolves around me
 
@Shepmaster Sorry. I'm on mobile and it's a bit fiddly
 
@PeterHall no worries, I don't think you did anything wrong
 
@Shepmaster I'm feeling pretty terrible about my actions, so thank you ;)
 
12:46 PM
@PeterHall well then, you were bad and should feel bad
 
1:01 PM
As @PeterHall demanded (teehee), I tried to write an answer that better covered the both dupe sources stackoverflow.com/a/43680882/155423
@LukasKalbertodt what's funny is I feel like I should be able to answer your questions about Rust grammar
but, I just know how to parse it
 
1:52 PM
@Shepmaster :D ha, well, that's something I guess
 
@LukasKalbertodt I think Rust's grammar must be context-free because someone wrote an Antlr grammar for it
Although I didn't look at it to see if they are having to do anything unpleasant to work around the constraint
 
 
2 hours later…
4:09 PM
Yo, y'all know if this is sth fixable?
 
4:45 PM
@набиячлэвэли I was able to install on macOS 10.12.4 with nightly 1.18.
Lemme try with stable 1.17
Yep, that compiles OK
(shrug)
 
5:03 PM
So it's just this man's problem :v
 
 
5 hours later…
9:47 PM
I'm going to make a self Q/A
that just says "THE CALLER GETS TO PICK THE TYPE OF THE GENERIC PARAMETER"
over and over
 
10:23 PM
Or maybe you could add that over and over into The Book. :P
 

« first day (927 days earlier)      last day (2554 days later) »