mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
feat: add unsound
module
This commit is contained in:
parent
fc75151f2a
commit
08770e84fc
9 changed files with 130 additions and 8 deletions
9
crates/erg_compiler/lib/std/unsound.d.er
Normal file
9
crates/erg_compiler/lib/std/unsound.d.er
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue