Skip to content

Commit

Permalink
BR
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpe committed Sep 17, 2024
1 parent 2ce7e82 commit fc0d649
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ generic and array types,
## [`MCStructuralTypes`](MCStructuralTypes.mc4)

This language component allows to express additional types
that are defined by the combination of other types,
by combining other types,
like the union type `Foo | Bar` which is the type that is "`Foo` or `Bar`".
As structural types are orthogonal to other kinds of types,
`MCStructuralTypes` can be combined with any of the above
Expand All @@ -104,7 +104,10 @@ The documentation can be found in [`SIUnits`](../siunit/SIUnits.md).
## [`RegExType`](../regex/RegExType.mc4)

When using this language component,
RegEx types like `R"H(a|e)llo"` become expressible.
Subtypes of `String` defined as RegEx types like
`R"H(a|e)llo"`, or `R"-?[0-9]+"` `R"0x[a-f0-9]+"`
become expressible. This is useful to prevent e.g. security breaches by
malign input text.
This is documented in [`RegEx`](../regex/RegEx.md).

## Further Information
Expand Down

0 comments on commit fc0d649

Please sign in to comment.