HE Shi-Jun
HE Shi-Jun
@rdking I commented for `var` usage in other place I think you may already read, so I don't repeat it here again. @zenparsing gave a interesting idea that, using `const`...
@zenparsing > Syntax-wise, I think we lost `@` forever to decorators (which I think is OK). Is there any syntax conflict with `x@obj` and `@deco` if we use `x[no-newline]@obj`? >...
@rdking > Would you consider `let method() {}`? I can't say `let` could convey more or less lexical scope `this` expectation than `my`... and use `let` implies mutable?
@bakkot > To me it seems like "block scope vs function scope" is hard enough to teach without introducing a third kind of scope which is based on runtime values...
@erights > I agree with this observation but come to a different conclusion. We should not use var for this. Even we use other keyword like `hidden a, b, c`,...
@Guxingzhe Your proposal breaks the compatibility, for example, `_privateMethod() {}` is a non-private method now.
@Guxingzhe > However, the use of "#" is acceptable, it is only a matter of time I agree `#` is workable, but how it can acceptable for everyone, I am...
@Guxingzhe 你可能在暗示我是老人家所以不接受?🤪 你如果听过我的一些演讲就知道了,总体上我是非常推崇各种新的特性的。关于 #priv ,其实我很早就接受的,你可以看去年我在QCon北京的演讲:http://www.infoq.com/cn/presentations/how-programming-languages-evolve-take-js-private-as-an-example 。另外,实际上老家伙反而更能忍受奇怪的语法呢。我反对这个提案其实完全不是因为不接受新风格,而是深思熟虑它可能造成的结果。这里一时半会儿讲不清楚。后续我会找机会在国内组织一个关于此的讨论会。
@Guxingzhe 我当然是都看过的。实际上我可能是国内参与这个讨论最多的人。这东西确实看起来简单,但是讨论起来非常复杂。还是推荐你先看一下我之前那个演讲。
@ljharb I would like you to mark these conversation as off-topic, thank you. --- For anyone have interest in our conversation, here is the translation: Guxingzhe: PS. Hi guru, do...