babel / proposals

✍️ Tracking the status of Babel's implementation of TC39 proposals (may be out of date)
https://github.com/tc39/proposals
432 stars 39 forks source link

Block Params (Stage 1) #53

Open hzoo opened 5 years ago

hzoo commented 5 years ago

https://github.com/samuelgoto/proposal-block-params

littledan commented 5 years ago

Note that this proposal led to significant concerns from implementers when it was presented at TC39. I imagine it could be nontrivial to implement in Babel for the same reasons.

nicolo-ribaudo commented 5 years ago

I don't think that it would be difficult; we would reuse the same logic we already have for disambiguating async arrows.

littledan commented 5 years ago

I don't mean in parsing, but to make it so that return, break and continue inside block parameters do so for the outer function.

hzoo commented 5 years ago

Yeah, I just wanted to make an issue for each proposal but most of them we probably don't want to implement yet.

We need to automate this work lol, it's always out of date of course

harvey-woo commented 5 years ago

Block params is lovely, i hope babel will support parsing this proposal in recent further