« first day (1741 days earlier)      last day (1730 days later) » 

8:14 AM
Hello everyone, I need your opinion. What should I do with this old answer of mine? Back then, the accepted answer was indeed wrong. But by now, @Shepmaster fixed it and my answer has no additional information over the accepted one. Should I just delete my answer?
 
First, don't delete
Then... Why did @Shepmaster fix a wrong answer when there was a correct one which was the same that what shep got as a result of editing ?
 
@DenysSéguret Well, even with Rust gold badge, we cannot change the accepted answer and since OP didn't change it, fixing the accepted answer does indeed have value. So I don't mind that.
 
That's not the right solution IMO. In similar cases an upvoted comment below the question refers to the correct answer. This is more fair.
 
8:29 AM
@DenysSéguret Yeah true. I also feel kinda bad to give the old answerer (who didn't care about updating their question) more points by fixing their question. But yeah, thinking about random google visitors, it's probably useful?
For a non-accepted answer to appear above the accepted one, it needs twice as many upvotes or sth like that?
 
8:44 AM
> appear above the accepted one
who cares ? When you search a solution for a problem you're not just copy-pasting from the first answer you find
It's also possible to downvote a bad answer
 
 
8 hours later…
4:18 PM
/me waves
 
4:29 PM
@Shepmaster Welcome back! :D
(now pls halp curate things :((( )
 
4:53 PM
@Stargateur Thank you. I fixed the error while creating the minimal reproducible example as you suggested :) io::copy had to be called with remote_file (ssh2::Channel) and not remote_file.stream() (ssh2::Stream). — Joyce Babu 34 mins ago
@Shepmaster come back and someone say this
 
MRE is guuuud
 
5:24 PM
How a comment can be matched in macro_rules?
I cannot find any resource about that
I tried with meta, but that does not work
I meant a doc comment.
And the compiler says some weird things: play.rust-lang.org/…
“error: no rules expected the token #” while there is no such a token
Well, I'll ask a question about that, let's collect some reputation
 
I don't think it possible, also I don't think it makes sense to have this feature
 
Nothing ever makes sense with you :'D
When you don't understand the aim of something, it doesn't make sense
 
true but I always right :p
I think your best luck would be to parse doc attribute
 
5:41 PM
I could match a string and generate the doc with this attribute, that's an idea, thanks
But less appealing visually
@Stargateur Why don't you add that answer?
 
>

It is possible to capture doc comments in macro invocations. It is not widely-known, but Rust documentation is actually represented as a special kind of attribute on an item.
 
@FrenchBoiethios because I have no idea of the answer xd
 
@Shepmaster Thanks, I was searching exactly for that, but I did search with the wrong keywords -_-
And that's why the compiler "sees" a token #. That's confusing, tho
 
6:04 PM
Am I the only one to think that the macros are always a pain in the *** to work with?
 
maybe that why they create proc_macro
more powerful more clean
 
But more boilerplate to use
 
6:43 PM
@Shepmaster Thank you for your help, I've been able to write some cool shortcut: gitlab.com/Boiethios/goa-rs/blob/gir/src/simple/account.rs#L35
 
 
2 hours later…
8:49 PM
haha people really believe it's faster ?
the code is very strange
 

« first day (1741 days earlier)      last day (1730 days later) »