Skip to content

Commit 987f3c3

Browse files
committed
Merge branch 'master' of https://github.com/Hirrolot/datatype99
2 parents 667567b + a6605a0 commit 987f3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ where
152152
- `variants...` is a [list] of variants represented as two-place [tuples]: `(<variant-name>, types...)`, where
153153
- `types...` is a [list] of types of the corresponding variant.
154154

155-
Put simply, a deriver is a [Metalang99-compliant](https://metalang99.readthedocs.io/en/latest/#definitions) macro which is meant to automatically generate something global for a sum type, like interface implementations or almost any other stuff. If you are acquainted with Rust, Datatype99's derive macros are conceptually the same as the [derive attribute] for `enum`s. From my experience, derive macros allow to provide really nice, declarative, type-safe APIs.
155+
Put simply, a deriver is a [Metalang99-compliant](https://metalang99.readthedocs.io/en/latest/#definitions) macro which is meant to automatically generate something global for a sum type, like interface implementations or almost any other stuff. If you are acquainted with Rust, Datatype99's derive macros are conceptually the same as the [derive attribute] for `enum`s. From my experience, derive macros allow for really nice, declarative, type-safe APIs.
156156

157157
[list]: https://metalang99.readthedocs.io/en/latest/list.html
158158
[tuples]: https://metalang99.readthedocs.io/en/latest/tuple.html

0 commit comments

Comments
 (0)