Lightweight Sum Types and Switches for Lua: lua-match

2024-12-31

lua-match is a minimalistic Lua library providing sum types and switch functionality. It leverages a tagging function for a clean and efficient way to handle various data types and conditional branching. With a simple tagging function and a switch table, you can easily implement sum type-like behavior and pattern matching, simplifying your Lua code significantly. The library is open-source and uses the MIT license.

Development Sum Types