On Wed, May 13, 2015 at 4:41 PM, Damien Pollet <[email protected]>
wrote:

> On 13 May 2015 at 08:35, Marcus Denker <[email protected]> wrote:
>
>> Only three methods are needed to allow generating executable methods from
>> such an AST: the SyntaxErrorNotification
>>  is raised at runtime instead of compile time.
>>
>
>
What is the advantage of allowing syntax errors into the running system,
when they can be trapped statically before that ?  It seems to me the
advantage of this change is that it allows compilation to complete rather
than bombing out part way through.  But just because compilation finishes,
doesn't mean it needs to be committed into the runtime system.

> Syntax errors shouldn't require immediate fixing during compilation per
> se, but there should be a way to deal with them "at compile time" —whatever
> that means for us.
>
For instance, faulty methods could have a flashy icon in the browser; I
> think I'd even color the whole package-class-protocol-selector in red if
> either of them contain faulty methods.
>

I guess it *should* mean that the faulty-compiled-method is not committed
but stored in a temporary buffer similar to how editing source is
effectively done in a temporary buffer. Indication of the fault would only
be needed in the window that compiled the fault.

cheers -ben

Reply via email to