Skip to content

Commit 18182de

Browse files
author
aless.hosry
committed
commenting wildcard
1 parent be57f71 commit 18182de

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

MoTion/MatcherWildcard.class.st

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
"
2-
""A matcherWildCard is like a jocker, whenever a MatcherWildCard is created, for the first matching process the isMatch is true, and the context is filled with the matcher value and alias. Then when a new match is applied, it will start matching the values with the existing context. So the idea is to match two Objects together to see if they exactly match and have the same properties.""
2+
A matcherWildCard is like a jocker, whenever a MatcherWildCard is created, for the first matching process the isMatch is true, and the context is filled with the matcher value and alias. Then when a new match is applied, it will start matching the values with the existing context. So the idea is to match two Objects together to see if they exactly match and have the same properties.
3+
It is also used to indicate an unknown property, when one only cares for its value:
4+
For example:
5+
6+
```
7+
ClassA % {
8+
#_ <=> aValue.
9+
}
10+
```
311
"
412
Class {
513
#name : 'MatcherWildcard',

0 commit comments

Comments
 (0)