HE Shi-Jun

Results 543 comments of HE Shi-Jun

Using unicode brackets is a GREAT idea. Today I happened have an interview, the candidate just waste several minutes because she entered `if(` instead of `if (`. Such accidents are...

I heard that there is a syntax option like `let x2 = (let x = 100; x * x)` (just use parens) but can't find related issue. Consider this issue...

> when I say `eval`, maybe I mean that old function, maybe I mean the brand new syntax here. @studentmain Yeah, instead of overloading `do`, this alternative choose overloading `eval`...

@ljharb As we see, many js programmers want `if` expression, so i'm not sure what's the real blocker issue of `if` expression?

So `map1` would be an mutable object which could collect the mutations, if I understand correct. It would be a much nicer syntax, but the problem is not sure how...

Thank you @BigBlueHat for clarify my question. @domenic I hope I would make my question clearer. I never imagine there is any possibility browser vendors will implement the old XPointer...

Good question! Actually tree shaking is one of the important use cases of this proposal. First, ad-hoc extension methods and accessors are very friendly to tree shaking, it could solve...

> This sets a strange precedent in JS, where a String method accepts a string which is interpreted as a _set of characters_. No other String method does this. @SebastianSimon...

@jamiebuilds We are facing the conflict with the average programmers who never use such APIs (so they expect `TrimPrefix` instead of `TrimCharacters`) VS. those who have knowledge with similar APIs...

Mostly this proposal is near dead. But I think it could revive to two separate proposals: - method extraction, suppose the syntax is * infix op (which I prefer): `a.&b`...