On Sunday, 6 September 2015 at 21:16:18 UTC, Prudence wrote:
Or, maybe better yet, have the concept of "code strings". which are strings that are suppose to be interpreted as code. This then means the compiler just has to do a syntax check for errors before it does anything else with them(semantics will be checked lazy, which is already implemented).

There already is a kind of "code string":

    interpret(q{
         var a = 2;
         var b += a;
    });

It doesn't do any kind of syntax check, but there again how do you want to have syntax check for any language? The D compiler is a D compiler, it can't support js syntax or whatever.

Reply via email to