Rezultati pretraživanja
  1. 29. stu 2018.

    pop quiz (credit dtolnay) for some defined macro `m`, fn main() { let x: String; let m!() = x; }

    Prikaži ovu nit
  2. 31. ožu 2017.

    Rust pop quiz: `let () = foo()`

  3. 5. velj 2017.

    Rust pop quiz: Option<T> is:

  4. 2. velj 2017.

    Not really sure how to fit this into a single tweet-sized pop quiz, but here's another interesting Rust quirk:

  5. 1. velj 2017.

    Rust pop quiz: let ref y = vec![1,2,3,4]; println!("{:?}", y);

  6. 1. velj 2017.

    Rust pop quiz: `fn foo(ref x: Foo)`. What does the `ref` do?

  7. 1. velj 2017.

    Rust pop quiz: `struct Foo {x: [u8], y: [u8]}`. `Box<Foo>` is:

  8. 31. sij 2017.
    Odgovor korisniku/ci

    That's the only wrong answer in this quiz, the other two are correct :P

  9. 31. sij 2017.
    Odgovor korisniku/ci

    I assume it's because the quiz has two arguably-correct answers?

  10. 31. sij 2017.
    Odgovor korisniku/ci

    Yeah. I call it "pass reference by value". (Yes, the quiz is misleading because it sort of has two correct answers)

  11. 31. sij 2017.

    Pop quiz: When do you have a pass-by-reference arg in Rust

  12. 31. sij 2017.

    Pop quiz: Passing objects in Java is:

  13. 22. sij 2017.
  14. 22. sij 2017.

    Rust pop quiz: How many iterations in `for _ in 4..1 { ... }`?

  15. 21. sij 2017.

    Rust pop quiz: if T: Clone, what does x.clone() do when (a) x is &T, (b) x is &&T:

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.