← Back to context

Comment by ketzu

1 hour ago

> Prior to this change most Rust developers would never have cause to ever use `!` for any reason.

As a type.

"!" is in the most basic example nearly every rust developer has seen:

    println!("Hello, World!");

Unless you specifically watched a presentation or read a blog post about the never type, you probably haven't seen it as a type.

If the average (and nearly all new) rust developers encounters "fn bla(blub: i64) -> !" I suspect they will mostly go "huh??" (or wonder what kind of weird macro that is) until it becomes common to encounter early and gets it's own early entry in the rust book.

Compared to reading "fn blub(bla: &str) -> Never", which seems rather straight forward imo. However, "Never" might be the name of some actual Struct or Enum in various codebases.