Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PMunch/nim-optionsutils
Utility macros for easier handling of options in Nim
https://github.com/PMunch/nim-optionsutils
hacktoberfest
Last synced: 2 months ago
JSON representation
Utility macros for easier handling of options in Nim
- Host: GitHub
- URL: https://github.com/PMunch/nim-optionsutils
- Owner: PMunch
- Created: 2019-06-25T16:49:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T23:32:00.000Z (over 3 years ago)
- Last Synced: 2024-08-03T03:04:51.176Z (6 months ago)
- Topics: hacktoberfest
- Language: Nim
- Homepage:
- Size: 32.2 KB
- Stars: 36
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nim - optionsutils - Utility macros for easier handling of options in Nim. (Language Features / Error Handling)
README
optionsutils
============This module implements conveniences for dealing with the `Option` type in
Nim. It is based on
[superfuncs maybe library](https://github.com/superfunc/maybe) and
[Toccatas novel boolean approach](www.toccata.io/2017/10/No-Booleans.html)
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](https://nimble.directory/docs/optionsutils//optionsutils.html).