Swift: Add an eval() function
| Originator: | thebuckley | ||
| Number: | rdar://17140667 | Date Originated: | 03-Jun-2014 10:11 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | New Feature | Reproducible: | N/A |
When shipped, an eval() function would be great to have in the Swift runtime. Such a function would take a String and compile it in the current process. Obviously, I'm not advocating for an entire development enviornment to be shipped to every user, but it might be possible if the Swift fronted is included as part of the runtime, and it passes off an AST to libllvm. I would love to have an eval() function on both OS X and iOS, but if it's not feasible on iOS, I'd still like it on OS X.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!