Why is concise body for method definition dropped?

Rick Waldron waldron.rick at gmail.com
Wed Jun 5 08:13:48 PDT 2013


On Wed, Jun 5, 2013 at 10:57 AM, Jason Orendorff
<jason.orendorff at gmail.com>wrote:

> On Wed, Jun 5, 2013 at 9:50 AM, Rick Waldron <waldron.rick at gmail.com>wrote:
>
>> MethodDefinition :
>>   PropertyName ( FormalParameterList ) { FunctionBody }
>>
>> Still defines a "concise body", but doesn't specifically label it as such
>> and PropertyDefinition still contains the MethodDefinition-part
>>
>> Hopefully this helps?
>>
>
> Rick, I think Yusuke was asking about this form:
>
>     class F {
>         f(x) x+1
>     }
>

Yes, it appears I conflated the two "shortened method" syntaxes. Apologies
for the noise and thanks for the correct clarification.

Rick





>  -j
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130605/a2d2ef79/attachment.html>


More information about the es-discuss mailing list