Non-Generic Inner Functions? #37
PatatasDelPapa
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Is the motivation performance in this specific context? There's probably a lot of benchmark-driven perf work to be done on trillium in the near future, and I'll definitely keep this in mind as a possible optimization. In general, my focus is initially on adding feature support so that people can express complete applications, with perf being a later concern that only matters if there's sufficient adoption |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This morning I've been shared this article about what says in the title and looking at the code of some methods taking for example
impl Into<Body>
then doing the into and performing the rest of the function with the concrete Body like this function it seems to me that this is a prime example to apply this pattern (Having the generic parameter and an inner function working with the concrete type after the conversion).The idea behind is explained in the article but this part capture it well enough
Beta Was this translation helpful? Give feedback.
All reactions