Skip to content

Commit 4dea80c

Browse files
committed
Coevolution is cool
1 parent 834a259 commit 4dea80c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

const-generic-const-fn-bounds.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ of `impl const` items.
144144
7. Remove the call in https://github.com/rust-lang/rust/blob/f8caa321c7c7214a6c5415e4b3694e65b4ff73a7/src/librustc_passes/ast_validation.rs#L306
145145
8. Adjust the reference and the book to reflect these changes.
146146

147+
## Const type theory
148+
149+
This RFC was written after weighing practical issues against each other and finding the sweet spot
150+
that supports most use cases, is sound and fairly intuitive to use. A different approach from a
151+
type theoretical perspective started out with a much purer scheme, but, when exposed to the
152+
constraints required, evolved to essentially the same scheme as this RFC. We thus feel confident
153+
that this RFC is the minimal viable scheme for having bounds on generic parameters of const
154+
functions. The discussion and evolution of the type theoretical scheme can be found
155+
[here](https://github.com/rust-rfcs/const-eval/pull/8#issuecomment-452396020) and is only 12 posts
156+
and a linked three page document long. It is left as an exercise to the reader to read the
157+
discussion themselves.
158+
147159
# Drawbacks
148160
[drawbacks]: #drawbacks
149161

0 commit comments

Comments
 (0)