optionsutils

Utility macros for easier handling of options in Nim

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:23

Installation

nimble install optionsutils
choosenim install optionsutils
git clone https://github.com/PMunch/nim-optionsutils

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
optionsutils - - - - - - -

Source

Repository https://github.com/PMunch/nim-optionsutils
Homepage https://github.com/PMunch/nim-optionsutils
Registry Source nimble_official

README

optionsutils

This module implements conveniences for dealing with the Option type in Nim. It is based on superfuncs maybe library and Toccatas novel boolean approach but also implements features found elsewhere.

The goal of this library is to make options in Nim easier and safer to work with by creating good patterns for option handling. It consists of two files: optionsutils which implements all the features, along with safeoptions which exists to provide a safe way to use options. It gives you all the functionality of the options and optionsutils modules, but will leave out get and unsafeGet so that only the safe patterns from optionsutils will be available for use.

To see what optionsutils offers, see the documentation.