Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Or patterns, i.e Foo(Bar(x) | Baz(x)) #2535

Merged
merged 26 commits into from
Oct 7, 2018
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1cd9017
rfc, nested-disjunction-patterns: some initial notes"
Centril Apr 9, 2018
7f9ae99
rfc, or-patterns: initial version.
Centril Aug 29, 2018
99db31d
rfc, or-patterns: move file.
Centril Aug 29, 2018
27c8467
rfc, or-patterns: fix typo.
Centril Aug 29, 2018
fb37a51
rfc, or-patterns: simplify to &(p | q | ..).
Centril Aug 29, 2018
1d959b9
rfc, or-patterns: fix typo.
Centril Aug 29, 2018
6db6ac9
rfc, or-patterns: expand initialism DNF.
Centril Aug 29, 2018
61d4948
rfc, or-patterns: fix an oopsie.
Centril Aug 29, 2018
2f75fbc
rfc, or-patterns: fix inconsistency.
Centril Aug 30, 2018
a1a17bd
rfc, or-patterns: flatten list of languages.
Centril Aug 30, 2018
0501bd4
rfc, or-patterns: be more to the point.
Centril Aug 30, 2018
e410faf
rfc, or-patterns: clarify where i @ p | j @ q is allowed today.
Centril Aug 30, 2018
2c974ae
rfc, or-patterns: code using git2-rs, not from it.
Centril Aug 30, 2018
d477b2c
rfc, or-patterns: permalinks.
Centril Aug 30, 2018
55754ae
rfc, or-patterns: give example blowup.
Centril Aug 30, 2018
a00d802
rfc, or-patterns: more rationale for precedence.
Centril Aug 30, 2018
bf7a7bd
rfc, or-patterns: binding mode is important.
Centril Aug 30, 2018
a206586
rfc, or-patterns: discuss special casing E0408.
Centril Aug 30, 2018
839008b
rfc, or-patterns: fix typo.
Centril Aug 30, 2018
5a820cc
rfc, or-patterns: clarify that top_pat is permitted in fn arguments.
Centril Sep 20, 2018
3b016a3
rfc, or-patterns: discuss macros and closures.
Centril Sep 20, 2018
879fd99
rfc, or-patterns: discuss closures more + func args => pat<no_top_alt>.
Centril Sep 20, 2018
151c8a6
rfc, or-patterns: typo & grammar nit?.
Centril Sep 20, 2018
1ad3e9d
rfc, or-patterns: clarify unification semantics for p | q.
Centril Sep 25, 2018
0032122
rfc, or-patterns: note about macros in guide.
Centril Oct 7, 2018
c73692f
RFC 2535
Centril Oct 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rfc, or-patterns: expand initialism DNF.
  • Loading branch information
Centril committed Aug 29, 2018
commit 6db6ac985816e96efe213f26e3a5b0381d1091d0
4 changes: 2 additions & 2 deletions text/0000-or-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ non-programmers alike and included speakers of:
Thus, we conjecture that it's more common for humans to not distribute and to
instead use something akin to *conjunctive normal form* ([CNF]) when communicating.
A likely consequence of this is that a common way to understand snippet (1)
formulated in [DNF] is to first mentally reconstruct it into CNF and then
understand the implications of the pattern.
formulated in *disjunctive normal form* ([DNF]) is to first mentally reconstruct
it into CNF and then understand the implications of the pattern.

By allowing users to encode their logic in the way they think instead of going
through more indirect routes, we can improve the understandability of code.
Expand Down