dgkf / R

An experimental reimagining of R
https://dgkf.github.io/R
GNU General Public License v3.0
136 stars 5 forks source link

Fix: promise evaluation #123

Closed dgkf closed 7 months ago

dgkf commented 7 months ago

Closes #122

Fix: Saves result of forcing promise back into environment, instead of re-evaluating it every time.

Chore: Renames Closure to Promise. Maybe eventually there will be a need for both, but for now I think Promise is a better indication of what this represents. A Closure might be better represented by a function anyways (I think internally R refers to its functions as "closures" anyways since they always capture their environments).