Reputation: 41500
Does Swift provides the ability to eval Swift code like Javascript does? I would like to create an app that can run Swift code.
Upvotes: 8
Views: 1604
Reputation: 750
I think eval() is not implemented at moment. For REPL Shell look here Swift Blog
Upvotes: 2
Reputation: 41821
No, it doesn't. There is a Swift JIT exposed via the REPL, but it's not (currently at least) intended for use in applications.
Upvotes: 5