add typetraits.OrdinalEnum, enumutils.symbolName (#17281)

This commit is contained in:
Timothee Cour 2021-03-10 08:08:24 -08:00 • committed by GitHub
commit eb07a5a75b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 57 additions and 9 deletions

View file

@ -47,8 +47,9 @@
- Added `std/enumutils` module. Added `genEnumCaseStmt` macro that generates case statement to parse string to enum.
Added `items` for enums with holes.
Added `symbolName` to return the enum symbol name ignoring the human readable name.
- Added `typetraits.SomeEnumWithHoles` for enums with holes.
- Added `typetraits.HoleyEnum` for enums with holes, `OrdinalEnum` for enums without holes.
- Removed deprecated `iup` module from stdlib, it has already moved to
[nimble](https://github.com/nim-lang/iup).