Why Sponsor Oils? | source | all docs for version 0.32.0 | all versions | oils.pub
Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.
The interpreter can run in pure mode
WebAssembly is also pure computation, and can be used in a variety of contexts.
It has io
too.
--eval-pure
vs --eval
TODO: link to doc/reef
eval()
and evalExpr()
vs. io->eval()
and io->evalExpr()
TODO: link to doc/reef
func
What's not allowed:
&
shell-flags
for --eval-pure
func/eval
and
func/evalExpr
func
- functions are pureio
and vm
- impure
behavior is attached to these objectsPure mode is a bit like functional programming, but the style inside a function is not functional.
In YSH, it's natural to write pure functions in an imperative style. Just like you can do this in Python or JavaScript (although there is no enforcement, unlike Oils)