Libraries: Result - type-safe error handling for MQL5 without exceptions

 

Result - type-safe error handling for MQL5 without exceptions:

A small, dependency-light library that brings a Rust-style Result type to MQL5. Functions return a single value-or-error object instead of relying on the global GetLastError() state, so failures are explicit and impossible to ignore. Includes ResultValue (value types) and Result (pointer-held objects), an Error struct, early-return macros (TRY, RETURN_ON_ERROR, ...) and optional Then/Match/MapError callbacks.

Result - type-safe error handling for MQL5 without exceptions

Author: Maksym Yaroslavovych Libovych