Zulip Chat Archive
Stream: lean4
Topic: how to document `partial` restriction?
Arthur Paulino (Mar 24 2022 at 20:46):
Leo explained to me that partial
cannot be used on functions whose return type might be empty. I tried to PR an explanation with the examples that he showed me but a test is capturing the fact that I (intentionally) introduced code that doesn't compile.
This is the PR
My question is: how to explain it without showing code that doesn't compile?
Sebastian Ullrich (Mar 24 2022 at 20:49):
You can use
```lean,ignore
code blocks for that
Last updated: Dec 20 2023 at 11:08 UTC