Void

Overview

A Void value represents the absense of a value. To help with type-safety, a variety of specialized operators are available for working with Void values.

// Returns v1 if non-voidish, otherwise if `v1 == Void` returns v2
v1 ?? v2;

// Eventually the following syntax will allow optional chaining.
v3?.field();

Note:

The optional chaining operator ?. has not yet been implemented or decided.

On this page