Template Expression Spec Clarification #1187
-
|
Hi, I have a few questions to clarify how multiple expressions in Template Expression Spec are handled.
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @Jes-s-L, Sorry, I completely missed this! Answers below:
A "template expression" is stored in memory as a list of expression trees, basically. So I guess the answer is no, they are actually maintained as a single object and carried around as one group of trees.
The way it works is that a mutation or crossover will randomly pick one of the subtrees, and then dispatch to the normal mutation/crossover operation. So this means that at the moment, yes, you can definitely have crossovers between an expression for
Not really! It gets passed to all the same functions as a normal single expression tree. The |
Beta Was this translation helpful? Give feedback.
Hi @Jes-s-L,
Sorry, I completely missed this! Answers below:
A "template expression" is stored in memory as a list of expression trees, basically. So I guess the answer is no, they are actually maintained as a single object and carried around as one group of trees.
The way it works is that a mutation or crossover will randomly pick one of the subtrees, and then dispatch to the normal mutation/crossover operation. So this means …