Open lenaqr opened 9 years ago
A workaround is available: wrapping print or plot in action
turns it into an inference action, which can be sequenced with do
.
(do
stuff
(action (plot "h0" ...)))
This is a hack: action
is just an alias for return
, but strict evaluation causes the right set of things to happen.
Some functions, such as
print
andplot
, are not inference actions but nevertheless have side effects. If this is intentional, it would be useful to have a construct like Scheme'sbegin
to evaluate multiple expressions in sequence. (Currently,begin
is an alias fordo
, which sequences inference actions.)Depending on #131, might become irrelevant.