On Sun, Jul 15, 2012 at 7:21 PM, SomeDude <lovelyd...@mailmetrash.com>wrote:
> On Saturday, 14 July 2012 at 13:33:16 UTC, Gor Gyolchanyan wrote: > >> >>> Yes, eval or exec is pretty much outlawed in other languages, I can only >>> imagine the same would happen in D. >>> >>> >> That's a huge mistake a lot of people make. They outlaw things that they >> don't understand or don't know how to use. As I said: having something >> doesn't mean using it. Those who can use it - will use it. Those who can't >> - won't. >> > > And those who can use it for wrongdoing will. This alone completely > destroys the feature imho. > It doesn't have to be a black/white choice. How about analyzing and caching the code before executing it at run time? If the code is analyzed and proved to be safe - then it's executed without hesitation. Yes, it'll require a lot of work to pull this off. -- Bye, Gor Gyolchanyan.