The OpenD Programming Language

tryMatchMember

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

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

Throws

Exception if member can't be accessed with provided arguments

Fuses algebraic types on return.

Meta