eeeeaaii / vodka

Creative Coding Environment
GNU General Public License v3.0
126 stars 3 forks source link

I have a bit of a mess with package imports #209

Closed eeeeaaii closed 2 years ago

eeeeaaii commented 2 years ago
  1. deferred functions always try to evaluate all arguments, even if the closure pointed to by the deferred command text has arg types that tell you to skip evaluating an arg
  2. deferred functions can't be made vertical
  3. if you import a package that imports another package, the inner import doesn't work because it happens after the outer deferred value returns
eeeeaaii commented 2 years ago

this is the same issue as with begin. Basically if an arg returns a deferred value, you expect subsequent args to not be evaluated until that value finishes. So if a package statement is put inside a deferred command instead of a regular one, you expect the import to finish before the subsequent things get evaluated.