On May 20, 2019, at 8:24 AM, Tagir Valeev <amae...@gmail.com> wrote:
> 
> Assuming that we agreed on 'yield' the option B seems the most attractive. A 
> big No to context-specific parse tree. It's a complete pain to IDEs. Don't 
> forget that IDE often deals with incomplete code, missing dependencies, etc., 
> and still needs to provide reasonable highlighting and completion. Imagine 
> that 'yield' method is available via import static Foo.* or superclass. In 
> this case we don't want to look into other files to build a correct parse 
> tree.

So does this (option B plus your No) mean that IDEs would 
tend to color "yield" as a keyword (at the beginning of a
statement) even if followed by "("?

I suppose that would work.  It's hard to predict what that
would feel like, but it's logical.

— John

Reply via email to