« first day (1775 days earlier)      last day (1707 days later) » 

11:16 AM
posted on August 23, 2019 by Ryan Lopopolo

Artichoke is a platform for building MRI-compatible Ruby implementations. Artichoke provides a Ruby runtime implemented in Rust that can be loaded into many VM backends.

 
@PeterHall I'm pretty sure the question has been answered elsewhere, but I cannot find anything. Many similar questions, but no question that clearly has the problem of "moving value into `for loop and trying to use it afterwards"
 
Surely there is dupe for this: stackoverflow.com/questions/57637354/…
@LukasKalbertodt oh snap.
 
:P
Good timing!
 
I can't find it either
 
Oh wait. I just now realized that there are even more problems with this code 0.o ouch
Mh, this might even be such a clusterfuck of problems that I wouldn't mind answering this question. I doubt there is a single other Q&A that answers everything.
 
11:22 AM
It's actually simple, no? he wants this: play.rust-lang.org/… ?
assuming he doesn't want the newly pushed items to also be looped over...
 
@PeterHall Yep, I think so, too. Only one change but that solves multiple problems at once.
 
which would cause an infinite loop, so probably he doesn't want that
Still... I'm sure it's a dupe
 
@PeterHall One would hope that's not the case. An answer should probably mention that modifying a collection one iterates over brings these strange bugs/problems.
What do you think about making a dedicated Q&A for the "hu I didn't know I moved my value into the for loop" question? I saw this a lot already and people are just confused that values can also be moved inside a construct like the for loop.
 
Maybe just answer this one
And have it closed by Shepmaster later when he finds the dupe :)
 
@PeterHall :D
But yeah sure, why not. Let's help someone in need.
 
11:31 AM
ok. Go ahead if you want. Or I'll do it if you are feeling lazy :)
 
@PeterHall I'm writing, done soon. Won't be a long answer
 
yip
I guess he hadn't read the comments in the code directly above the line he linked to
 
11:48 AM
@PeterHall Yeah, probably
 
 
3 hours later…
2:24 PM
who broke its news proc ? me
lifetime 0 seconde
who doesn't give a shit about it LDLC
even if I'm not sure I'm the one who broke it
 

« first day (1775 days earlier)      last day (1707 days later) »