woo <:: &{(woo=1.div.12)}; Scopes in ::SHE+ILA::

Mystical Scene of Woman and Doll in Purple Gown
181
0
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • Prompt
    Read prompt
  • DDG Model
    FluX
  • Access
    Public
  • Created
    2d ago
  • Try

More about woo <:: &{(woo=1.div.12)}; Scopes in ::SHE+ILA::

Here we have a function called "woo" which defines a local variable also called "woo" (with a whimsical value of one twelfth, lol). Note that the function "woo" then returns immediately, thus the inner "woo" is no longer visible. And the outer "woo" is not visible inside the function either. We could reference it as "woo::woo", and the outer one as "::woo". But this is not a very useful example. We can also nest a function inside the outer "woo" function, maybe by saying
woo <:: &{(woo=&{(woo=&{(woo=&{(woo=.pi.*2)})})})};
This is getting as unreadable as LISP, lol. Maybe we could call it woo::woo::woo::woo, lol :) Let's hope we made our stack big enough ;)

Comments


Loading Dream Comments...

Discover more dreams from this artist