Skip to content

Commit 452d9d0

Browse files
committed
add E language as prior art
1 parent 2080f87 commit 452d9d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/3637-guard-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ This can also be seen as a special case of the previous argument, as pattern mac
239239
# Prior art
240240
[prior-art]: #prior-art
241241

242-
As far as I am aware, this feature has not been implemented in any other programming languages.
242+
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).
243243

244-
Guard patterns are, however, 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.
244+
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.
245245

246246
# Unresolved questions
247247
[unresolved-questions]: #unresolved-questions

0 commit comments

Comments
 (0)