« first day (2532 days earlier)      last day (942 days later) » 

5:45 AM
Well, @Stargateur, that code is from stackoverflow.com/questions/1220046/…
 
@Jason from 2009 yes
 
Regardless of how one spins it, it looks more convoluted and error prone to me?
 
and even in SO specially in C and specially in 2009 2010 there is bad code
@Jason compare to rust, yes sure, but say you can't handle error in C is plainly wrong
 
I’m not sure what they meant by that, given that the same is said about Rust.
Either way, I thought it was cool to see that AAA game studios see value in Rust, even though (understandably) it’s mostly for tooling.
Maybe some of these points are talked about in the actual GDC presentation, but that one’s not available.
 
 
7 hours later…
1:06 PM
part of me hopes impl specialization will just never land
Almost every time somebody has a question to which the answer is "well not today, but maybe with specialization..." my immediate thought is "but you probably shouldn't do this in the first place because the 'workaround' is actually a better design"
 
 
3 hours later…
3:55 PM
@trentcl yeah clearly
 
4:20 PM
like NLL allow bad code
 
Let's agree to disagree about that
 
4:40 PM
NLL allows bad code ? It brought so much simplicity and clarity. What exemple is there of some bad code allowed by NLL ?
 
that more, NLL force to think to very good design like the entry pattern
 
4:58 PM
one exemple in shep answer stackoverflow.com/questions/50251487/…
fn example(mut map: HashMap<i32, i32>, key: i32) {
    match map.get_mut(&key) {
        Some(value) => *value += 1,
        None => {
            map.insert(key, 1);
        }
    }
}
 

« first day (2532 days earlier)      last day (942 days later) »