89 ms·
I'm looking at this as well. I'm confused about the word `figure` here. It looks like it's a keyword for this new type of pattern matching switch. but the word
by neilsimp1 8y ago
I'm looking at this as well. I'm confused about the word `figure` here. It looks like it's a keyword for this new type of pattern matching switch. but the word `figure` itself seems unneeded.
- chusk3 8y ago`figure` here is just an instance of Shape that was previously in scope. You've got to match on an instance of an object in this syntax.
- contextfree 8y agoIt looks like "switch" is an infix operator in this context, so "figure" is just the variable/value on which the match operates.