TechforgoodCAST / elm-week

Elm week at Founders & Coders
MIT License
14 stars 4 forks source link

Change 'pattern matching' description to 'destructuring' #24

Open maxgerber opened 6 years ago

maxgerber commented 6 years ago

People have found the term 'pattern matching' confusing as they have usually heard it in the context of switch/case statements in JS, and would describe breaking out the tuple like this as destructuring (though both are actually accurate).

We could either change the description, or add something like this to the helpful resources section of the readme... https://gist.github.com/yang-wei/4f563fbf81ff843e8b1e

https://github.com/TechforgoodCAST/elm-week/blob/7a511fbe3e1e52e6dd5c659ecb7360404d72d5c4/part1/syntax-workshop/Solutions.elm#L278