tc39 / proposal-pattern-matching

Pattern matching syntax for ECMAScript
https://tc39.es/proposal-pattern-matching/
MIT License
5.5k stars 89 forks source link

Champion Meeting Notes, 2023-12-11 #311

Closed tabatkins closed 11 months ago

tabatkins commented 11 months ago

Attendees: Jack, Jordan, Mark, Ron, Tab, Daniel Minor

(I joined late, so anything that happened previously will have to be edited in by Jordan or someone else.)

do-exprs

Plan is to proceed as if they'll exist, but block stage 3 (whether formally or informally) until we know one way or the other. Confident we can engineer around either outcome.

when prefix

Just discussed it again, didn't come to a conclusion on whether to keep it or leave it out.

It would be useful to document other pattern language's decisions in this regard and (if possible to determine) their rationale, regardless of what we choose, so we'll do that. (Tab volunteers to write up an issue.)

There was also some related discussion on boundary tokens around the RHS.

void pattern

Decided that, tho useful, this is a technically unnecessary piece, and reducing syntax as much as possible is important. Champion consensus is to move it back to the "future work" section.

true/false vs truthy/falsey

Decided to relax to just requiring truthy/falsey when called in boolean context. Extractor context still requires a strict true/false (or iterator), to allow us to expand our options in the future.

plus/minus

Discussed the +x/-x patterns.

mgaudet commented 11 months ago

The new Mozillian was @dminor