Implement "maybe", nullable container type
Submitted by Christian Dywan
Assigned to Christian Dywan
Description
There have been requests and suggestions for a "maybe" or nullable type in the past, and so I propose the following:
"maybe", literal "m", is a container type much like an array, but it can only hold either 0 or 1 element. So "ms" could be either "spam", "" or null.
Think of 'string? eggs' in Vala or C#, where the question mark indicates that the string can be null.
Version: 1.5