feat: add unsound module

This commit is contained in:
Shunsuke Shibayama 2023-10-15 02:30:05 +09:00
parent fc75151f2a
commit 08770e84fc
9 changed files with 130 additions and 8 deletions

View file

@ -0,0 +1,9 @@
'''
Evaluate a string as Python code.
'''
.pyeval: (code: Str, globals := {Str: Obj}, locals := {Str: Obj}) -> Obj
'''
Execute the procedure circumventing effect analysis.
If you want to use side effects locally in a function, use the `isolate` function instead.
'''
.perform: |T|(p!: () => T) -> T