Using it
variable after evaluation recomputes values
#881
Labels
command-line-repl
Related to Cryptol's text-based UI
UX
Issues related to the user experience (e.g., improved error messages)
Milestone
Inside
evalReplExpr
, theit
variable is defined so the result can be referred to later, if desired. However, it is simply bound to the parsed input expression, which means that the computation is just recomputed instead of reusing the result.cryptol/src/Cryptol/REPL/Command.hs
Line 1640 in 8bfad53
We should use something like
bindItVariableVal
instead, and only fall back to binding the raw expression for types that cannot be translated back to expressions. Alternately, we should extend the dynamic environment data structure to accept values as well as expressions so translating back isn't necessary.The text was updated successfully, but these errors were encountered: