Class data member declarations proposal idea

Aaron Gray aaronngray.lists at gmail.com
Fri Aug 10 09:59:34 UTC 2018


On Fri, 10 Aug 2018 at 00:09, Logan Smyth <loganfsmyth at gmail.com> 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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180810/a0ac21b4/attachment.html>


More information about the es-discuss mailing list