Closed everdimension closed 5 years ago
Can't merge this due to @jridgewell's comments.
@littledan Sure, I open to comments and changes.
If my proposed changes are not "correct" in some way, then I believe this only strengthens the idea that using functions as class fields should be better documented in this proposal.
I would surely like to better understand how they are supposed to work.
I agree that documentation should be improved in this proposal. I wonder if, rather than editing the original example, it could be helpful to have an additional document about details off to the side.
Closing this PR due to issues noted months ago.
It seems to me that using class fields for declaring instance methods is one of the core reasons for creating this proposal. It should be helpful to see example usage in README.
It also shows how you can no longer need the
constructor
and arguably make code more concise.