Boon
Boon

Reputation: 41500

Does Swift provides the ability to eval Swift code like Javascript does?

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

Answers (2)

Denis Kohl
Denis Kohl

Reputation: 750

I think eval() is not implemented at moment. For REPL Shell look here Swift Blog

Upvotes: 2

Catfish_Man
Catfish_Man

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

Related Questions