add Unison and Wolfram langs as prior art

This commit is contained in:
Max Niederman 2024-06-22 13:29:22 -07:00
parent 486ac8a520
commit 0581da516e
No known key found for this signature in database
GPG Key ID: C2EB24390E0AC0FF
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ This can also be seen as a special case of the previous argument, as pattern mac
# Prior art
[prior-art]: #prior-art
This feature has been implemented in the [E programming language](https://en.wikipedia.org/wiki/E_(programming_language)) under the name ["such-that patterns"](http://erights.org/elang/grammar/patterns.html#suchThat).
This feature has been implemented in the [Unison](https://www.unison-lang.org/docs/language-reference/guard-patterns/), [Wolfram](https://reference.wolfram.com/language/ref/Condition.html), and [E ](https://en.wikipedia.org/wiki/E_(programming_language)) languages.
Guard patterns are also very similar to Haskell's [view patterns](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/view_patterns.html), which are more powerful and closer to a hypothetical "`if let` pattern" than a guard pattern as this RFC proposes it.