HomeDevCentral

Introduce Option class with Some and None types

Description

Introduce Option class with Some and None types

Summary:
This change adds an Option class, inspired by Rust generic type Option,
using the same pattern as the Result class in 8b2b9129c24.

First use case is to introduce optional string setting in saas-mediawiki.

Ref T2140

Test Plan: New unit tests to cover fully the Some and None classes.

Maniphest Tasks: T2140

Differential Revision: https://devcentral.nasqueron.org/D3741

Details

Provenance
derecksonAuthored on Sun, Oct 12, 13:26
derecksonPushed on Sun, Oct 12, 13:45
Differential Revision
D3741: Introduce Option class with Some and None types
Parents
rKERUALD48ed7a8e2753: Promote Type::getTypeOf as public helper method
Branches
Unknown
Tags
Unknown
References
tag: omnitools/0.14.0
Tasks
T2140: Migrate Wolfplex wiki tables on a dedicated database