NESM
NESM copied to clipboard
NESM stands for Nim's Easy Serialization Macro. The macro that allowing generation of serialization functions by one line of code! (It is a mirror of https://gitlab.com/xomachine/NESM)
https://github.com/xomachine/NESM/blob/master/nesm/enums.nim checks whether an integer can be converted to a valid enum by comparing the stringifying of the enum with "(invalid data!)". However, ARC/ORC changes its behavior. Instantiating invalid enums...
Fix #17
Use uncheckedAssign for object variant assignment
I get errors when I attempt to use object variants with NESM. Specifically: > assignment to discriminant changes object branch; compile with -d:nimOldCaseObjects for a transition period [FieldDefect] I have...
I propose to add a pragma, that can be attached to fields, and that causes those fields to be skipped completely during de-/serialization.
Here are some enhancements that I feel would greatly improve the quality of life of those implementing certain protocols. It would be greatly beneficial if we were able to set...
here's an example that's not (AFAICT) supported. ``` import nesm serializable: type O = object when defined(debug): qname: string other: int ```