Guàrdia is a small library in hopes of obsoleting guard.lua, which is pretty old already if you ask me. This one, to nobody's surprise, is curried and focused on MoonScript, but hey, you're stil free to use it in Lua.
$ luarocks install guardia
You can find the documentation over here.
- Removed v2 tests.
guardia.v2becomes simplyguardia._typefromguardia.guardsdoes not negate the result anymore. This increases clearness.- Added logical operators in
guardia.init. - Added manual.
- Changed the behavior of
_typeas explained in the Guards Manual. _utypeand_utableare not exported anymore.- Removed doc comments from source code.
- Documentation now uses MkDocs.
- If you don't want to have to change all of your code,
guardia.v2provides replacements written using the new terms, so no need to worry about that. - Functions are now defined in an actually compositive manner.
I'm throwing this, as always, to the public domain, do what you want with it.
Dael [[email protected]]
goodbye.