News for hackers. Stuff that matters.
Re:IBM will offer free COBOL training by msla on Saturday April 11, 2020 @02:12PM (#22843119)
> 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.

Re:IBM will offer free COBOL training by ptx on Saturday April 11, 2020 @03:06PM (#22843449)
Can 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.