Commit graph

8 commits

Author SHA1 Message Date
fb97755cad
docs + refactor: document all of Result module & minor refactors/fixes
* Include moonwave doc comments for `Result`
* Renamed `Option:getInner` to `Option:unwrapUnchecked`
* Updated both `Option.__eq` and `Result.__eq` to support tables
* Replaced nil returns in types with unit type
* Make unimplemented methods throw an error
* Rename `Result.exceptErr` to `Result.expectErr`
* Add missing return type in `Result.unwrapOrElse`
2024-04-26 10:55:22 +05:30
5dfc707b29
fix: credit source for table comparison algorithm 2024-04-15 21:26:38 +05:30
d85faed644
feat(Option): include documentation + minor changes
* Add proper equality checks for tables in metamethod.
* Document all exported functions & classes.
2024-04-15 21:23:51 +05:30
de25b4d19c
fix: uncomparable metatables TypeError 2024-04-02 23:00:56 +05:30
d5508bc6d0
feat: add equality metamethods 2024-04-01 22:35:55 +05:30
ef451dace6
feat: finalize Option & Result implementations 2024-04-01 16:01:05 +05:30
f380daf7b2
feat: changes to formatting metamethods and examples 2024-04-01 12:05:59 +05:30
538fd90b0c
feat: initial Result and barebones Option implementation 2024-04-01 11:37:43 +05:30