exploring-reasonml icon indicating copy to clipboard operation
exploring-reasonml copied to clipboard

Chapter: Pattern matching: destructuring, `switch`, `if` expressions

Open rauschma opened this issue 7 years ago • 4 comments

rauschma avatar Feb 07 '18 06:02 rauschma

going through this and it's excellent content, thanks! fyi, there's a typo: "If you don’t fix this issue, ResonML throws a runtime exception when an operand doesn’t have a matching branch"

lewisf avatar Feb 11 '18 06:02 lewisf

Thanks, will be fixed in the next release!

rauschma avatar Feb 11 '18 06:02 rauschma

Thank you so much for putting this content out there. It has been really helpful. I found a slight typo in the Alternatives in Patterns subsection. ‘If a variable name exists in one subpattern, it must exit in all subpatterns.’ It should say ‘...exist in all subpatterns’.

entorenee avatar Aug 26 '18 18:08 entorenee

Thanks for the great content. I think there is a redundant operator word in this sentence:

I don’t find the ternary operator operator very useful in ReasonML: its purpose in languages with C syntax is to have an expression version of the if statement

Hope this helps!

phamhoaivu911 avatar Nov 25 '19 08:11 phamhoaivu911