samuelgoto / proposal-block-params

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

`do` example #4

Closed mathiasbynens closed 6 years ago

mathiasbynens commented 6 years ago

I’m a little confused by https://github.com/samuelgoto/proposal-dsls#do con. Is this example valid? IIRC, do is a keyword, so it cannot be used as an identifier. do expressions have their own proposal.

samuelgoto commented 6 years ago

ah, good catch, do can't be used as an identifier. done, removed from the examples! good catch, thanks!