Closed Blady-Com closed 1 year ago
Thank you for the comments! I have copied your comment to Issue #34 on Pattern Matching as an Ada Language Feature to avoid splitting the discussion on pattern matching between two issues. Please continue the discussion there.
I've closed this issue to further discourage commenting on it, as well as marked it as a duplicate.
Here are some comments on Rigorous Pattern Matching as a Language Feature: 2.2 Proposed Pattern Matching Syntax
might be
in oder to have a same syntaxe in both cases, for instance :
<Val>:(0 .. 100 with mod 2 => 0, mod 3 => 1)
might be
in order to match accesses for instance:
might be
in order to specify that the
others
part shall match at least once for instance:[’0’, ’x’ | ’X’, others => ’0’..’9’ | ’a’ .. ’f’ | ’A’ .. ’F’ +]