Ark icon indicating copy to clipboard operation
Ark copied to clipboard

[Question] Evaluating code from a string

Open SuperFola opened this issue 1 year ago • 0 comments

Is your feature request related to a problem?

It could be interesting to be able to execute code at runtime, however I would like to know what others think about this potential feature before making any kind of decision.

Describe the solution you would like

Something along the lines of (eval "arkscript code) would work?

It could either

  • spawn a new virtual machine,
  • or integrate in the one running, inside another execution context

Is it a big modification to the language? Leave it if you don't know

  • [X] Breaking change
  • [ ] Compiler/syntax modifications
  • [ ] Runtime modifications (standard library, modules, packages...)

SuperFola avatar Sep 24 '22 17:09 SuperFola