Yield as contextual keyword

Jan Lahoda jan.lahoda at oracle.com
Mon May 27 16:18:41 UTC 2019

On 27. 05. 19 16:06, Doug Lea wrote:
> I don't enjoy being the token curmudgeon here, but I find it
> increasingly hard to appreciate why a non-ambiguous choice (prefix "^")
> with precedence in related languages should be rejected in favor of one
> requiring context-sensitive grammar mangling with some known odd
> consequences. At the very least, could someone help check as-yet-unknown
> impact by using candidate parsers on large source corpuses (for example
> http://groups.inf.ed.ac.uk/cup/javaGithub/, google-internal, etc)?

So, I've run the current parser over a corpus that we sometimes use - 
there do not appear a conflicting use of yield there. There is a handful 
of uses of yield as a variable; some invocations of Thread.yield; and 
(the included version of) JRuby appears to define and invoke methods 
called "yield", but the invocations appear to be in an expression context.


> -Doug

More information about the amber-spec-observers mailing list