2 ms·
> That looks a lot like Visual Basic, except it allows you to name the patterns. More to the point, it allows you to keep the patterns near the variable declar
by msla 7y ago
> That looks a lot like Visual Basic, except it allows you to name the patterns.
More to the point, it allows you to keep the patterns near the variable declaration, so you can reuse them.
The pattern matching is part of how the data is declared.
- ptx 7y agoCan you also reuse them for different variables, if you want to store two of these chars? This program appears to have the patterns declared as part of the variable declaration.