The OpenD Programming Language

optionalMatchMember

Behaves as matchMember but doesn't enforce at compile time that all types can be handled by the member visitor.

import mir.algebraic;
alias optionalMatchMember(string member, TArgs...) = visitImpl!(getMemberHandler!(member, TArgs), Exhaustive.nullable, true)

Return Value

nullable variant, null value is used if the member can't be called with provided arguments.

Fuses algebraic types on return.

Meta