JLS 17: expression statement or statement expression?
Alex Buckley
alex.buckley at oracle.com
Fri Jun 10 16:52:33 UTC 2022
Unfortunately, but unavoidably, the terminology is confusing. Best not
to treat them as synonyms since a statement expression, being an
expression, is evaluated, while its "enclosing" expression statement,
being a statement, is executed.
On 3/10/2022 10:45 AM, Khalid Azim Mughal wrote:
> Hi.
>
> Both expression statement and statement expression refer to section 14.8.
> Are these two terms synonyms?
> Bit confused.
> Any clarification is much appreciated.
> Thank you.
More information about the jls-jvms-spec-comments
mailing list