New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classes seems to be too strict #803

Closed
sr229 opened this Issue Feb 7, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@sr229

sr229 commented Feb 7, 2017

the ECMAScript 6 Harmony Specification for Classes require at least a Constructor/Super/Static to define a method/function/etc.

class moveWhere extends Movement{
  constructor () {
      move(left);
   }
};

Making classes on Javascript always explicitly defining a constructor or such optionally, makes the classes encapsulation more dynamic.

class moveWhere extends Movement {
  move(left);
};

If this is too vague or invalid, you may simply ignore this and close this issue.

Note: This idea is based on CoffeeScript's Classes

@bakkot

This comment has been minimized.

Show comment
Hide comment
@bakkot

bakkot Feb 8, 2017

Contributor

I'm not entirely sure what you're asking for, but per CONTRIBUTING.md you should send feature requests to esdiscuss.

It'll help if you can be a bit more clear about what it is you're asking for, also.

Contributor

bakkot commented Feb 8, 2017

I'm not entirely sure what you're asking for, but per CONTRIBUTING.md you should send feature requests to esdiscuss.

It'll help if you can be a bit more clear about what it is you're asking for, also.

@bakkot bakkot closed this Feb 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment