samuelgoto / proposal-block-params

A syntactical simplification in JS to enable DSLs
205 stars 8 forks source link

Perhaps don't encourage `this` usage #22

Open domenic opened 6 years ago

domenic commented 6 years ago

We've been trying for a while to say that this is only for methods. This proposal uses it as a way of passing context around, but to functions, not methods. This is not great, although I'm not sure what the alternative is.

samuelgoto commented 6 years ago

this was originally conceived as the mechanism to enable nesting.

This has been a consistent feedback I'm getting, so I think it really does need to be addressed.

This is current formulation of nesting, which I think addresses the abuse of this.

Does that sound like it would address the encouragement of this?

domenic commented 6 years ago

That makes sense to me.