Class data member declarations proposal idea

Logan Smyth loganfsmyth at
Fri Aug 10 15:18:29 UTC 2018

> That and the syntax.

The syntax snippet you posted is identical to what is already supported by
the class fields proposal alongside Flowtype. You can see this with Babel:

It would help to clarify what is different about how you envision fields to

On Fri, Aug 10, 2018 at 2:59 AM, Aaron Gray <aaronngray.lists at>

> On Fri, 10 Aug 2018 at 00:09, Logan Smyth <loganfsmyth at> wrote:
>> It might help if you could clarify how your proposal diverges from the
>> class fields proposal that you linked to. From purely a syntactic view,
>> ignoring the type annotations, I don't see an obvious difference, so it is
>> hard to tell what your expectations are. You state "I have shown the
>> idea of declaring subobject default value declarations.", but I can't
>> actually tell what that means or what you intended to show. Is
>> ```
>> defaults = {
>>   a: 1,
>>   b: 2
>> }
>> ```
>> meant to create a property called `defaults`, or do something else?
> That and the syntax.
> Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list