Skip to main content

ModernSyntax

ModernSyntax is a high-performance, lightweight functional programming and modern syntax extension toolkit for Delphi. It brings paradigms found in Rust, Kotlin, C#, and Haskell directly into native Pascal code.

Core modules

UnitTypePurpose
ModernSyntax.OptionTOption<T>Null-safe optional values
ModernSyntax.ResultPairTResultPair<S,F>Railway-oriented error handling
ModernSyntax.MatchTMatch<T>Expressive pattern matching
ModernSyntax.AsyncTAsync / Async()Async/await task scheduling
ModernSyntax.TupleTTuple, TTuple<K>Lightweight anonymous data structures
ModernSyntax.CurryingTCurryingPartial function application
ModernSyntax.SafeTryTSafeTryFunctional exception wrapper
ModernSyntax.DotEnvTDotEnv.env file loader (cross-platform)

Platform support

EnvironmentPlatformsStatus
Delphi XE or superiorWin32, Win64Fully supported
Delphi XE or superiorLinux64 (dcclinux64)Build-verified (2026-06-20)
Delphi XE or superiormacOS / iOS / AndroidSupported by RTL; not build-verified