I have seen the pattern %_{}
being used to match against structs (notice the _
after the %
).
Is this documented somewhere? It seems to match structs but I’d like to know if I am misisng something.
I’m not sure if there is real documentation around this. But at least, I found in the 1.3.0 changelog this:
- [Kernel] Allow variable struct names when matching, for example,
%module{key: "value"} = struct
For me this implies more or less, that I can also use _
as a name to bind to.
10 Likes
Wow, that makes sense, I thought it was special syntax