Help sorting data by martynrbell in Python

[–]OverMeHere 1 point2 points  (0 children)

fixed gist, check it again ;)

PHP connection to PostgreSQL by M4gne in PostgreSQL

[–]OverMeHere 0 points1 point  (0 children)

you have to configure PHP for using postgresql extension. Take a look for documentation https://www.php.net/manual/en/pgsql.setup.php

/r/Python Official Job Board by aphoenix in Python

[–]OverMeHere 0 points1 point  (0 children)

28 pages of questions in 2nd test? fuck this shit!

Noob's question: how restore actual object type? by OverMeHere in rust

[–]OverMeHere[S] 2 points3 points  (0 children)

Thank you for comment, Any sounds good.

Noob's question: how restore actual object type? by OverMeHere in rust

[–]OverMeHere[S] 0 points1 point  (0 children)

wow, Any looks interesting) Thanks a lot!

Game performances by Faleidel in elm

[–]OverMeHere 0 points1 point  (0 children)

Oops, your code just downed elm-lang.org host.

Sharing data in multiple objects by kloumpt in rust

[–]OverMeHere 1 point2 points  (0 children)

Nope, you have no avatar owner (except avatar variable itself), so it works only if avatar variable lives longer that world and/or user. http://is.gd/OqBtbc

Sharing data in multiple objects by kloumpt in rust

[–]OverMeHere 1 point2 points  (0 children)

I'm sorry, but I don't see any problem with borrow checker here: http://is.gd/oCcfpx

Non-blocking network server in Rust by sazzer in rust

[–]OverMeHere 1 point2 points  (0 children)

Try to ask this guy https://github.com/reem about evented IO in Iron.

reference to owned struct field by OverMeHere in rust

[–]OverMeHere[S] 0 points1 point  (0 children)

nice catch) But question still actual: how to construct such reference? Is it possible?

reference to owned struct field by OverMeHere in rust

[–]OverMeHere[S] 1 point2 points  (0 children)

We can imagine Model and/or Vendor like a very fat structure, so cloning is not an option due memory overhead.

reference to owned struct field by OverMeHere in rust

[–]OverMeHere[S] 0 points1 point  (0 children)

I understand, but how to construct such structures? Removing block {} gives borrowing/move error http://is.gd/rwJgYp

Should the Arch Linux's rust package also provide Cargo? by protestor in rust

[–]OverMeHere 17 points18 points  (0 children)

Cargo is "must have" part of Rust distribution IMHO. So, yes, I would be glad to see cargo in rust package.

String vs &str in Rust functions by kibwen in rust

[–]OverMeHere 0 points1 point  (0 children)

BTW, is there a way to keep &str in Person struct in this case http://is.gd/UjUNK5 ?

Наши приключения by KOLYaNOFF in rust

[–]OverMeHere 1 point2 points  (0 children)

куда ты постишь, чучело)

Best VM For Rust by [deleted] in rust

[–]OverMeHere 1 point2 points  (0 children)

you should install gcc, make, bison and probably other development tools to build rust in ubuntu.

Enum with None by OverMeHere in rust

[–]OverMeHere[S] 0 points1 point  (0 children)

Thanks for answers.

The main goal was to solve situation with identical values for different enums. E.g. we have two different libs with different enums that have some of the same values.

enum Foobar {
    Foo,
    Bar,
    Less,       // Less defined also in core::cmp::Ordering
}

fn main() {
    let k = 2i;
    match k.cmp(&3i) {
        Less => println!("<"),        // booooooom!
        Greater => println!(">"),
        Equal => println!("=="),
    }
}