vitreo12 / omni

DSL for low-level audio programming.
https://vitreo12.github.io/omni/
MIT License
188 stars 6 forks source link

def: replace all procs with funcs. #141

Closed vitreo12 closed 3 years ago

vitreo12 commented 3 years ago

Since this needs quite a bit of testing, it's not been added yet. It should be fairly trivial, just replace all nnkProcDefs with nnkFuncDefs (and all explicit procs with funcs). No function in omni causes side effects, and this could add a little speedup to some things.

vitreo12 commented 3 years ago

This will make sure that defs don't access any global state.

vitreo12 commented 3 years ago

Added noSideEffect to relevant procs in 0.3