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.v2
becomes simplyguardia
._type
fromguardia.guards
does not negate the result anymore. This increases clearness.- Added logical operators in
guardia.init
. - Added manual.
- Changed the behavior of
_type
as explained in the Guards Manual. _utype
and_utable
are 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.v2
provides 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.