Fwd: Yield as contextual keyword
brian.goetz at oracle.com
Mon May 27 16:24:55 UTC 2019
Sent from my MacBook Wheel
Begin forwarded message:
> From: Jan Lahoda <jan.lahoda at oracle.com>
> Date: May 27, 2019 at 6:18:41 PM GMT+2
> To: Amber Expert Group Observers <amber-spec-observers at openjdk.java.net>, Doug Lea <dl at cs.oswego.edu>, Brian Goetz <brian.goetz at oracle.com>
> Subject: Re: Yield as contextual keyword
>> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the amber-spec-experts