Re:IBM will offer free COBOL training
by ptx on Saturday April 11, 2020 @07:54AM
(#22841184)
That looks a lot like Visual Basic, except it allows you to name the patterns.
(This example is actually LibreOffice Basic, as I'm not on a Windows machine right now, but it should be the same in VBA and VB6.)
[ Parent
| on HN ]
> 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.