c:new/2
was not using opts wheninput
was a list- project would not compile if
enforce: true
option was used on constructor.
:check_keys
option is added. This will need to be set totrue
in order for keys to be enforced. It also will raise aKeyError
if a key that's not part of a struct is passed as input tonew/1
. Defaults tofalse
, as I prefer to enforce these kinds of constraints through the use of:constructor
functions instead of raising errors.
First release! The API should remain stable from here on out.