« first day (933 days earlier)      last day (2555 days later) » 

1:35 AM
hi
 
 
8 hours later…
9:57 AM
Hmm, what a shame...
 
 
3 hours later…
1:03 PM
Is there a way to move a generic type from a structure which has implemented drop?
I was trying to implement a linked list in rust, and have a drop implementation for the node structure. But this prevents me from moving the generic typed value from node when doing pop. I solved it by placing the value in an optional inside the node structure.
Will it always be the case in rust that, when a drop is implemented for a structure then a generic type (which might be needed to move) must be inside optional?
Here is a snippet
type Link<T> = Option<Box<Node<T>>>;
struct Node<T> { elem: Option<T>, next: Link<T> }
>> node.elem.take().unwrap() // This is part of pop which forces to put elem in optional
 
Ravi: there's also an unsafe solution to your problem, but yea it will always require some care
 
@oli_obk-ker what is the unsafe solution?
 
one sec, some new type that doesn't drop its contents
 
 
2 hours later…
3:18 PM
Hmmm, will move-assignment to _ drop a variable? Consider:
let line = exploit_the_working_class();
// Use line, etc.
let _ = line;
// End of scope
Will line be dropped (=> its memory freed) at L3 or L4?
 
3:44 PM
@набиячлэвэли L3
 
Good shit
I like predictable language features
 
Good thing Rust's full of 'em
 
 
2 hours later…
5:28 PM
posted on May 03, 2017

Rust’s second birthday is a little less than two weeks away (May 15th, 2017), so it’s time for us to reflect on our progress over the past year, and how we should plan for the future. The Rust Community Team is pleased to announce our 2017 State of Rust Survey! Whether or not you use Rust today, we want to know your opinions. Your responses will help the project understand its strengths and wea

 
 
3 hours later…
8:00 PM
Juan M on May 04, 2017

El mes pasado casi se me acabó el tiempo para compartir nuestros números interesantes del sitio. Este mes decidí no dejar que eso pasará de nuevo así que aquí están algunos datos de interés sobre el mes de abril.

¡Disfruten!

Jorgesys – 40 respuestas aceptadas

Gustavo García – 36 respuestas aceptadas

Dev. Joel – 35 respuestas aceptadas

FJSevilla – 34 respuestas aceptadas

eferion – 27 respuestas aceptadas

Como evitar el caché de los archivos css y js – 8 respuestas

Abrir una nueva pantalla, con un un onMenuItemClick y enviar datos – 6 respuestas …

 
8:17 PM
1 message moved from C#
 
8:57 PM
My State of Rust is definitely identifiable, even without my e-mail address.
 
 
1 hour later…
10:01 PM
What do you folks think of large answers with sub-questions as section separators?
 

« first day (933 days earlier)      last day (2555 days later) »