diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-05-11 19:38:03 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-05-11 19:38:03 +0100 |
commit | 47c1289ff658a5aec71635d79ffe30bb29a07876 (patch) | |
tree | 56cf6b959e37fed88c492d34defd3d7ec40e7148 /content/zettel/3b5a.md | |
parent | fbe0fc62120348f582dc4db2b614078943d0764b (diff) | |
download | zk-web-47c1289ff658a5aec71635d79ffe30bb29a07876.tar.gz zk-web-47c1289ff658a5aec71635d79ffe30bb29a07876.zip |
Add content
Diffstat (limited to 'content/zettel/3b5a.md')
-rw-r--r-- | content/zettel/3b5a.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/content/zettel/3b5a.md b/content/zettel/3b5a.md new file mode 100644 index 0000000..0166a10 --- /dev/null +++ b/content/zettel/3b5a.md @@ -0,0 +1,18 @@ ++++ +title = "Continuation passing style for `Ltac` functions" +author = "Yann Herklotz" +tags = [] +categories = [] +backlinks = ["3b5"] +forwardlinks = [] +zettelid = "3b5a" ++++ + +`Ltac` functions behave a lot like monads in Haskell, whereby they will +be pure if no tactic has been invoked in them, but will be monadic if a +tactic was executed before evaluating a `constr:()` construct. This is +normally not a problem, as in Haskell there is the `return` function to +lift any value into the monad. + +However, this is not defined for `Ltac`, and there is no `return` +available. |