News for hackers. Stuff that matters.
Re:Maintain It with Zig by steveklabnik on Wednesday September 08, 2021 @03:49PM (#28462124)
(You have a tiny typo; you forgot the <'a>. Also, I know you know this, but for those that don't, this signature could be written as

  fn rust_foo(a: &str) -> &str { ... }
but Arnavion is trying to be explicit here to make a steelman.)
Re:Maintain It with Zig by Arnavion on Wednesday September 08, 2021 @03:55PM (#28462227)
Yeah, I fixed that typo. And yes, foo is arbitrary, so one can assume it has another * / & parameter such that the lifetimes can't be elided any more.