Closed erikareads closed 7 months ago
I copied the entire public API of simplifile
, which does raise two deprecation errors from using the deprecated simplifile
functions.
It may be worth leaving those out here.
After thinking about this, I think I'm going to stick to the single API for now. Here are my concerns:
I really appreciate you taking the time to contribute, and hope you continue to do so :)
Creates
pokayokefile
an alternate API for simplifile that uses tagged constructors to ensure statically checked arguments.The constructors are public, so it's easy to unpack the types if needed. The types are only enforced on function arguments not on return types, so that the caller can decide how they would like to treat returned values.