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

Move Pattern matching to stage 1 update the pattern matching examples… #61

Closed Otomakan closed 4 years ago

Otomakan commented 4 years ago

Hello Everyone,

This is my first contribution ever to an open-source project (albeit a small one), so I apologize if I am doing any wrong.

So I updated the pattern matching proposal to stage 1 (see May 2018 TC39 meeting and slides https://docs.google.com/presentation/d/1WPyAO4pHRsfwGoiIZupz_-tzAdv8mirw-aZfbxbAVcQ/edit).

I also updated the code to reflect the latest syntax using case instead of match and when. The code also shows that case does not return a value contrary to the previous examples. After when we use arrows and the commas are also removed at the end of the statement.

Finally, there was a typo continously instead of continuously.

Thank you for reading and please let me know if I'm doing anything wrong.

JLHwung commented 4 years ago

Sorry for the super delayed reply. The stage information has been updated at #63 . I like the example changes in your PR, can you rebase on the master? Thanks!

Otomakan commented 4 years ago

No worries ! I did the rebase on master