Skip to content

class-based syntax #5

@trusktr

Description

@trusktr

Very interesting!

I noticed the classes don't have the empty bodies. F.e. isn't the following required?

class Ex extends Classic({...}) {};

(that last {} part)

I wonder if we can make a more familiar syntax with regular class extension and decorators. F.e.

class Ex extends Classic(Base) {
  @private foo = 123
}

The latest Babel decorators give us the initializer functions, which could internally be user for INIT.

I haven't looked at the impl or tested it yet. Will do soon!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions