TGViewer
Блог* Блог* @dereference_pointer_there · 1.98K subscribers
Post #11391 1.27K
#prog #rust #menacingopensource

nil

🦀🚀🔥 A blazingly fast and memory-efficient implementation of if err != nil 🔥🚀🦀


use nil::*;

fn thing() -> (isize, error) {
(1, nil)
}

fn main() {
let (n, err) = thing();
if err != nil {
println!("Oh no!");
}

println!("Got {n}.");
}
  • 😁 28
  • 😭 12
More from @dereference_pointer_there
  1. Sep 26, 2026Эм...
  2. Sep 26, 2026#politota #meme, видимо
  3. Sep 26, 2026photo post
  4. Sep 25, 2026а чо в смысле уже пятница
  5. Sep 25, 2026Обновляем гитлабчики 💅💅💅 CVE-2026-89078 - Double Free issue in Regular Expression Parse…
  6. Sep 25, 2026photo post
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →