Skip to content

non-native loadstring since rust doesn't natively support it #39

@SoniEx2

Description

@SoniEx2

in some languages you can evaluate the contents of a string. e.g. in python:

# (this is very useful with IRC bots)
exec("def x(v):\n    print('hello world')\n    if v:\n        print('bye world')\nx(False)\nx(True)")
# hello world
# hello world
# bye world

rust can't, so I'd like eval to do it for me:

<Soni> eval: --string "\"foo\\\n                               bar\""
[eval] "foobar"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions