News for hackers. Stuff that matters.
Re:A Conversation with Language Creators: Guido, James, Ande... by srgpqt on Thursday April 04, 2019 @12:11AM (#19569247)
Sum types.

Option<T> types which can have either Some(value) or Nothing for values. Statically compiled languages can typecheck this so you don’t have null pointer errors.

Some languages like TypeScript have this baked into the language syntax, so you can do: let x: Foo | null = bar; and is also properly type checked.

There are no comments on this comment yet.