erg/crates/erg_compiler/lib/std/unsound.d.er
2023-10-15 11:51:27 +09:00

9 lines
299 B
Python

'''
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