Comment by on_the_train

20 hours ago

If you write code that crashes on a blank field you'll manage to do that with any language

Err yeah but the point is languages without null pointers all over the place make it harder to do that in the first place. You normally get some kind of type error at compile time.

  • So like "var quota : string | null"? :-)

    • Yeah. But C++, C, Java and I think even Go don't let you easily encode nullability into the type system. There have been many attempts to fix it (e.g. `@Nonnull` in Java) but none are as good as Typescript or Rust for example. Dart actually started off with implicit nullability and switched to explicit which was a huge effort.