proposals icon indicating copy to clipboard operation
proposals copied to clipboard

Block Params (Stage 1)

Open hzoo opened this issue 6 years ago • 5 comments

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

hzoo avatar Jan 22 '19 17:01 hzoo

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.

littledan avatar Jan 24 '19 22:01 littledan

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

nicolo-ribaudo avatar Jan 25 '19 08:01 nicolo-ribaudo

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.

littledan avatar Jan 25 '19 12:01 littledan

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

hzoo avatar Jan 25 '19 13:01 hzoo

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

harvey-woo avatar Jan 31 '19 09:01 harvey-woo